Adjacent Sibling Selector

//the following example selects all <p> elements that are placed 
//immediately after <div> elements

div + p {
  background-color: yellow;
}

Selects all elements that are the adjacent siblings of a specified element.

Sibling elements must have the same parent element, and "adjacent" means "immediately following".

Related concepts

Adjacent Sibling Selector

Adjacent Sibling Selector — Structure map

Clickable & Draggable!

Adjacent Sibling Selector — Related pages: