Welcome to the Forumotion Support!


You are not connected. Please login or register

 
 

How to set the background for Staffs post?

Message (Page 1 of 1)

#1

Blade

Blade
 
Premium Member

Posted Fri Jun 21, 2013 3:34 pm

 
Hello there guys Smile

I want to ask, Wink

How to set the background for Staffs post?

Examples like this forum Smile

Can you explain how to? Smile

Thank you before Wink



Last edited by mangaka on Fri Jun 21, 2013 3:58 pm; edited 1 time in total





#2

Nathan Adhitya

Nathan Adhitya
 
Premium Member

Posted Fri Jun 21, 2013 3:53 pm

 
okay soo..
here's the first how you need to do
on the rank name just put like a div..
so it can be like 
Code:
Administrator <div class="admin"></div>
and then you make a javscript like
Code:
$(function(){$('.admin').closest('.post').addClass('admincolor')});
that javascript means :
if .admin detected in a post
the most closest div (.post) will be added a classname named "admincolor"
and then here's the CSS for the admin color
Code:
.post.admincolor {
    background-color: #FFF5F5!important;
    border: 1px solid #EED3D7!important;
}


that's what we have here GoodLuck!





#3

Blade

Blade
 
Premium Member

Posted Fri Jun 21, 2013 3:55 pm

 
Ooh..I understand now.

Well,this thread has been solved!





#4

Nathan Adhitya

Nathan Adhitya
 
Premium Member

Posted Fri Jun 21, 2013 4:01 pm

 
Solved & Locked





#5

FMHelp

FMHelp
 
Administrator

Posted Mon Aug 12, 2013 6:50 am

 
Topic Solved&Locked



https://fmhelp.forumotion.com


#6

Sponsored content


 

Posted

 





Message (Page 1 of 1)

Permissions in this forum:
You cannot reply to topics in this forum


  • Total Posts:
  • Total Members:
  • Newest Member:
  • Most Online: Most users ever online was 13 on Tue Jul 16, 2013 11:14 am

In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests
Users browsing this forum: None