Post background effect/coloring
+2
Ryanette
axiom
6 posters
Page 1 of 1
Post background effect/coloring
Alright so I followed this tutorial to color a staff accounts post background, Coloring a Posts Background
It is fine but a I want it to look different, basically all it does is just change the background's color, like this:
but I was wanting to know instead of just straight up changing the color of the background is there a way to change the "Hue and Saturation" of the posts background to give a better blended look, not just a solid color like #186111.
It is fine but a I want it to look different, basically all it does is just change the background's color, like this:
- Code:
$(function() {
$('tr.post:has(".specialpost2") td').css('background-color','#15120D');
});
but I was wanting to know instead of just straight up changing the color of the background is there a way to change the "Hue and Saturation" of the posts background to give a better blended look, not just a solid color like #186111.
Last edited by axiom on April 13th 2012, 11:12 pm; edited 1 time in total
axiom- Forumember
- Posts : 29
Reputation : 1
Language : english
Re: Post background effect/coloring
I meant can I add a code to this:
to make it look better, so I want the code, if possible to look something like this:
- Code:
$(function() {
$('tr.post:has(".specialpost2") td').css('background-color','#15120D');
});
to make it look better, so I want the code, if possible to look something like this:
- Code:
$(function() {
$('tr.post:has(".specialpost2") td').css('background-color','#15120D');
$('tr.post:has(".specialpost2") td').css('hue','50');
$('tr.post:has(".specialpost2") td').css('saturation','150');
});
axiom- Forumember
- Posts : 29
Reputation : 1
Language : english
Re: Post background effect/coloring
Hmmm... You could be more efficient!
$(function() {
$('tr.post:has(".specialpost2") td').css('background-color:','#15120D',hue','50''saturation','150');
});
$(function() {
$('tr.post:has(".specialpost2") td').css('background-color:','#15120D',hue','50''saturation','150');
});
Re: Post background effect/coloring
didnt work
axiom- Forumember
- Posts : 29
Reputation : 1
Language : english
Re: Post background effect/coloring
*sigh* People need to look into using the jQuery CSS function more.
In order to set multiple CSS properties you must pass in an object literal like so:
In order to set multiple CSS properties you must pass in an object literal like so:
- Code:
$(function(){
$('tr.post:has(".specialpost2") td').css({
'background-color' : '#15120D',
'hue' : '50',
'saturation' : '150'
});
});
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Post background effect/coloring
Member Banned ~ Content Removed. (slg)
oisdjoiw- New Member
- Posts : 5
Reputation : 1
Language : dfgfdger
Re: Post background effect/coloring
@LGforum
It is only changing the background color the hue and saturation isn't working
It is only changing the background color the hue and saturation isn't working
axiom- Forumember
- Posts : 29
Reputation : 1
Language : english
Re: Post background effect/coloring
In CSS don't exist hue or staturation. You can use only transparency, with opacity proprety.
Guest- Guest
Re: Post background effect/coloring
You have posted a copyrighted tutorial. Posting copyrighted things equals a warning.
Re: Post background effect/coloring
" Posting copyrighted things equals a warning." "Things!?" > 'Material'
Re: Post background effect/coloring
what copyright did i post?
i didnt use any ones tutoirial i sat for houres trying to think how to do it since all you dumb support staff couldn't give the right tut on how to do it so remove my warning and put my posts back
check your facts your not the only one that knows Java & css you know
i didnt use any ones tutoirial i sat for houres trying to think how to do it since all you dumb support staff couldn't give the right tut on how to do it so remove my warning and put my posts back
check your facts your not the only one that knows Java & css you know
Re: Post background effect/coloring
@xxangel17xx: Sat for hours and came out with the same 3 line code? Bravo.
Anyway regarding the topic author, you'll see in this topic: https://help.forumotion.com/t107808-gradient-background-for-staff
Rideem has explained things well, and you may find the addClass method a lot easier due to being able to control things directly from the css.
Anyway regarding the topic author, you'll see in this topic: https://help.forumotion.com/t107808-gradient-background-for-staff
Rideem has explained things well, and you may find the addClass method a lot easier due to being able to control things directly from the css.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Similar topics
» [code] background coloring
» Coloring background of posts according to Usergroups
» Widget Background, Effect Button, ..
» How to create a translucent effect & stop background from repeating
» Post Reply Button Shows Post New & No background
» Coloring background of posts according to Usergroups
» Widget Background, Effect Button, ..
» How to create a translucent effect & stop background from repeating
» Post Reply Button Shows Post New & No background
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum