CSS Only Selecting Certain Classes -


hi i'm working wordpress template. have separate template page blog section. on other pages of site have class works fine , looks this

.post header h2 { display:none; }  

on blog page, add css , works should

#main .post header h2 { display:block; } 

however if try other classes

#main .wrapper { background-color:#000000; } 

nothing happens. i've tried adding !important, i've tried writing such

body.page-id-15 #main .wrapper { background-color:#000000; } 

with no luck. here link site. http://gregtregunno.ca/news

the css selector wrong.

does not work:

#main .wrapper { background-color:#000000; } 

does work:

.wrapper #main { background-color:#000000; } 

in html of wordpress page, link have supplied, #main div located inside of .wrapper div:

... <div class="wrapper">     ...     <div id="main">         ...     </div>     ... </div> ... 

Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -