Hi everybody!
What is the difference selector
.a > .b { color: #fff; } from
.a .b { color: #fff; } " Hi everybody! What is the difference selector .a > .b { color: #fff; } from .a .b { ...">
Hi everybody!
What is the difference selector
.a > .b { color: #fff; } from
.a .b { color: #fff; } > 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">Демо ">" (фона нет)</div></div></div> .a .b {background-color: #fcc;} <div class="a"><div class="c"><div class="b">Демо " " (фон есть)</div></div></div> Source: https://ru.stackoverflow.com/questions/581308/
All Articles