Special post color problem! [help please]
3 posters
Page 1 of 1
Special post color problem! [help please]
I am adding it so a moderators post background color is green, and there font is black.
The only part NOT working is the font coloring part, the post background color IS working
The only part NOT working is the font coloring part, the post background color IS working
- Code:
$(function() {
$('tr.post:has(".specialpost2") td').css('background-color','#186111');
});
$(function() {
$('tr.post:has(".specialpost2") td').css('font-color','#000000');
});
axiom- Forumember
- Posts : 29
Reputation : 1
Language : english
Re: Special post color problem! [help please]
^ didnt work:(
axiom- Forumember
- Posts : 29
Reputation : 1
Language : english
Re: Special post color problem! [help please]
Change 'background-color':'#186111','font-color':'#000000' to
'background-color','#186111','font-color','#000000'
'background-color','#186111','font-color','#000000'
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Special post color problem! [help please]
Have people not thought about doing this:
And then just styling it in the CSS? with
- Code:
$(function() {
$('tr.post:has(".specialpost2") td').addClass('staffpost');
});
And then just styling it in the CSS? with
- Code:
.staffpost {
styling ...
}
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Special post color problem! [help please]
FYI Rideem this code has an error in:
For adding multiple CSS rules using jQuery you send an object in.
Just a regular Javascript Object structure.
- Code:
$(function() {
$('tr.post:has(".specialpost2") td').css({'background-color':'#186111','font-color':'#000000');
});
For adding multiple CSS rules using jQuery you send an object in.
- Code:
jQuery(selector).css({
'color' : '#fff',
'background' : '#000',
'font-weight' : 'bold'
});
Just a regular Javascript Object structure.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Special post color problem! [help please]
Wait what, can you just tell me what to paste in the javascript and css
axiom- Forumember
- Posts : 29
Reputation : 1
Language : english
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum