css - class+element over-riding class+class -


ok have following code:

<div class="something">     <div class="something-else">         <h2>heading</h2>         <p>some text</p>     </div> </div> 

when try style it, css rule in style sheet won't let me so. other style sheet has like:

.something h2 {     color:green; } 

i'm trying override with:

.something .something-else {     color:red; } 

is first rule more specific? because thought 2 classes win in situation.

2 classes + h2 work

you have select h2 in case


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -