XF 1.5 Changing the color of an individual category strip?

KenBrace

Active member
#1
I'm creating a category in my forum that will be seen by members only so I want it to stand out from among the rest.

A good way to do this would be to change the color of that particular strip.

Any idea how to do this?
 

Amaury

Well-known member
#2
Code:
.nodeList .categoryStrip .nodeTitle {
    background-color: #FF0000;
}
That's the CSS for the category strip. Then just include the node ID in it.
 

KenBrace

Active member
#3
Code:
.nodeList .categoryStrip .nodeTitle {
    background-color: #FF0000;
}
That's the CSS for the category strip. Then just include the node ID in it.
Thanks!

Just one question. How exactly should I include the node ID?

Is it targeted as a class, id, etc.?

I tried...
Code:
.nodeList .categoryStrip .nodeTitle .17 {
    background-color: #FF0000;
}
...and...
Code:
.nodeList .categoryStrip .nodeTitle #17 {
    background-color: #FF0000;
}
...but neither worked.
 

Brogan

XenForo moderator
Staff member
#8
It works for me on a default style, so perhaps you have something in your custom style which is overriding it.
 

KenBrace

Active member
#9
Oh wait, I figured out the problem. The CSS works. It's just being over-written by a background-image (I'm using a theme). All I had to do was set the background-image value to "none".
 
Top