Im having a bit of trouble understanding how > works in CSS, I thought what ever element we are targeting, the children of that element would pass on the property. I was wondering if there is an exception to that rule?
<ul id = "outside">
<li>A</li>
<li>B</li>
<li>C</li>
<ul>
<li>D</li>
<li>E</li>
<li>F</li>
</ul>
<li>G</li>
</ul>
#outside > li{
color: green;
}
A B C are green but D E F are not
<div id="three">
three
<div id="two">
two
<header id="one">
one
<footer id="zero">
zero
</footer>
</header>
</div>
</div>
#three > #two {
color: green;
}
two, one, zero are green but not three