CSS Only Selecting Certain Classes
Posted
by
Greg
on Stack Overflow
See other posts from Stack Overflow
or by Greg
Published on 2014-06-09T14:57:39Z
Indexed on
2014/06/09
15:25 UTC
Read the original article
Hit count: 250
css
Hi I'm working with a Wordpress template. I have a separate template page for the blog section. On the other pages of the site I have class that works fine and looks like this
.post header h2 { display:none; }
On the blog page, I add this to the CSS and it works as it should
#main .post header h2 { display:block; }
However if I try that with other classes like
#main .wrapper { background-color:#000000; }
Nothing happens. I've tried adding !important, I've also tried writing like such
body.page-id-15 #main .wrapper { background-color:#000000; }
with no luck. Here is a link to the site. http://gregtregunno.ca/news
© Stack Overflow or respective owner