Hi everybody!
What is the difference selector

.a > .b { color: #fff; } 

from

 .a .b { color: #fff; } 

1 answer 1

> extends only to the immediate descendants of the element, and (space) at any level of nesting.

 .a > .b {background-color: #fcc;} 
 <div class="a"><div class="c"><div class="b">Демо "&gt;" (фона нет)</div></div></div> 

 .a .b {background-color: #fcc;} 
 <div class="a"><div class="c"><div class="b">Демо "&nbsp;" (фон есть)</div></div></div>