KenBrace Active member Nov 16, 2015 #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?
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 Nov 16, 2015 #2 Code: .nodeList .categoryStrip .nodeTitle { background-color: #FF0000; } That's the CSS for the category strip. Then just include the node ID in it. Upvote 0 Downvote
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 Nov 16, 2015 #3 Amaury said: Code: .nodeList .categoryStrip .nodeTitle { background-color: #FF0000; } That's the CSS for the category strip. Then just include the node ID in it. Click to expand... 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. Upvote 0 Downvote
Amaury said: Code: .nodeList .categoryStrip .nodeTitle { background-color: #FF0000; } That's the CSS for the category strip. Then just include the node ID in it. Click to expand... 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.
Amaury Well-known member Nov 16, 2015 #4 I believe it would be .node_17 at the beginning. Upvote 0 Downvote
KenBrace Active member Nov 16, 2015 #5 Amaury said: I believe it would be .node_17 at the beginning. Click to expand... Just tried it and it doesn't seem to work. Code: .node_17 .nodeList .categoryStrip .nodeTitle { background-color: #FF0000; } Upvote 0 Downvote
Amaury said: I believe it would be .node_17 at the beginning. Click to expand... Just tried it and it doesn't seem to work. Code: .node_17 .nodeList .categoryStrip .nodeTitle { background-color: #FF0000; }
P Paul B XenForo moderator Staff member Nov 16, 2015 #6 Code: .nodeList .node_x .categoryStrip { background-color: @primaryLighter; } Upvote 0 Downvote
KenBrace Active member Nov 16, 2015 #7 Brogan said: Code: .nodeList .node_x .categoryStrip { background-color: @primaryLighter; } Click to expand... Doesn't seem to work either. Code: .nodeList .node_17 .categoryStrip { background-color: @primaryLighter; } Upvote 0 Downvote
Brogan said: Code: .nodeList .node_x .categoryStrip { background-color: @primaryLighter; } Click to expand... Doesn't seem to work either. Code: .nodeList .node_17 .categoryStrip { background-color: @primaryLighter; }
P Paul B XenForo moderator Staff member Nov 16, 2015 #8 It works for me on a default style, so perhaps you have something in your custom style which is overriding it. Upvote 0 Downvote
It works for me on a default style, so perhaps you have something in your custom style which is overriding it.
KenBrace Active member Nov 16, 2015 #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". Upvote 0 Downvote
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".
KenBrace Active member Nov 16, 2015 #10 Brogan said: It works for me on a default style, so perhaps you have something in your custom style which is overriding it. Click to expand... Wow, spot on. Upvote 0 Downvote
Brogan said: It works for me on a default style, so perhaps you have something in your custom style which is overriding it. Click to expand... Wow, spot on.