The element+element selector or adjacent sibling combinator is made of the "plus sign" character that separates two sequences of simple selectors. The elements represented by the two sequences share the same parent in the document tree and the element represented by the first sequence immediately precedes the element represented by the second one.

element+element {
    css declarations;
div+p {
   color: #3366ff;
   background: #ffff99;

Click the button below to experiment with this selector.

Give it a Try!

YesFirefox YesExplorer YesChrome YesSafari YesOpera