CSS element>element Selector
Complete CSS Selector Reference Manual
Example
Selects all elements whose parent is
elements'
element:
div>p
{
background-color:yellow;
}
Try it »
Definition and Usage
element>element The selector is used to select a specified parent element.
Note: A child element cannot be styled directly if it is not selected.
Browser support





All major browsers support element>elementselector.
**Note:**element>elementTo work in IE8, a DOCTYPE must be declared
Complete CSS Selector Reference Manual