It is valid and very usefull CSS. If you have a div named test and you want all the direct descendant divs from test to have certain style then you use it. For example:
Code:#test > div{ background:#ccc; }
This does not work in IE6, however.
It is valid and very usefull CSS. If you have a div named test and you want all the direct descendant divs from test to have certain style then you use it. For example:
Code:#test > div{ background:#ccc; }
This does not work in IE6, however.
#test div{
background:#ccc;
}
You are wrong, need only
Code:#test div{ background:#ccc; }
<div id='test'>
<div id='first'>
<div id='second'>
</div>
</div>
</div>