Pattern:
element1 + element2
Definition:
The element1 + element2 selector matches every element2 where element1 and element2 are sibling elements that share the same parent in the document tree, and element1 immediately precedes element2 (non-element nodes between element1 and element2 is ignored).
Examples:
Style every <p> element that is placed immediately after <h1>
1 | h 1 + p { font-size : large ; } |
1 | div.important + * { font-weight : bold ; } |
Please login to continue.