CSS element + element selector
CSS selectors complete reference manual
Examples
Then select all <div> elements after the <p> element:
div + p
{
background-color: yellow;
}
{
background-color: yellow;
}
try it"
Definition and Usage
Afterelement + elementselector for selecting (not internal) followed by the first element of the specified elements.
<H2 Browser Support
All major browsers supportelement + elementselector.
Note: element + element runs in IE8, you must declare <DOCTYPE!>
CSS selectors complete reference manual