4 ms·
Yeah, sorry for the mistake. Yes, you are right in this case bad code would look like : <ul class='collection'> <li> Is red <ul
by drinchev 12y ago
Yeah, sorry for the mistake. Yes, you are right in this case bad code would look like :
<ul class='collection'>
<li>
Is red
<ul class='collection'>
<li class='collection-special'>Should be blue</li>
</ul>
</li>
</ul>
.collection > li { color: red; }
.collection-special { color: blue; }
http://jsbin.com/tulenoxutu/1/edit?html,css,output http://jsbin.com/tulenoxutu/1/edit?html,css,output