Customizing SMF > Tips and Tricks
Different colours for quotes in a quote
klumy:
If would be great, if the quotes background within a quote will get different colours. So you can easier differ quotes within quotes.
Anguz:
you can do that with CSS.
http://css.maxdesign.com.au/selectutorial/selectors_descendant.htm
--- Code: ---.quote div div
{
/* Style here... */
}
--- End code ---
I think that's correct, if not, it's pretty close. :P
[Unknown]:
.quote .quote
{
background-color: hotpink;
}
.quote .quote .quote
{
background-color: yellow;
}
.quote .quote .quote .quote
{
background-color: white;
}
.quote .quote .quote .quote .quote
{
background-color: red;
}
.quote .quote .quote .quote .quote .quote
{
background-color: brown;
}
If you wanted it really really ugly, use the above in your css.
-[Unknown]
klumy:
okay thanks, but why don't you use alternate colours for SMF Forum like purple and grey. this would looks good
Anguz:
Thanks [Unknown], I knew it mine wasn't right, but was close. :P
klumy, the backgrounds for topic replies are done with different classes. AFAIK, it can also be done with CSS, just can't remember how. It's following the same method shown here, but used a bit different...
* Anguz goes find out...
Navigation
[0] Message Index
[#] Next page
Go to full version