<ul>
<li>hello</li> .links ul:nth-child(2){
<li>hello</li> color: lawngreen;}
<li>hello</li>
<li>hello</li>
<li>hello</li>
</ul>
<ul>
<li>hello</li> \
<li>hello</li> \
<li>hello</li> -- ---------- this list turns to lawngreen
<li>hello</li> /
<li>hello</li> /
</ul>
<ul>
<li>hello</li> .links li:nth-child(2){
<li>hello</li> color: lawngreen}
<li>hello</li> 2nd element of each list's color changes
<li>hello</li>
<li>hello</li>
</ul>
<ul>
<li>hello</li>
<li>hello</li>
<li>hello</li>
<li>hello</li>
<li>hello</li>
</ul>
Comments
Post a Comment