The ~ combinator selects all elements that are next siblings of a specified element.
The following example selects all p elements that are next siblings of div, and share the same parent:
Paragraph 1.
Paragraph 2.
Paragraph 3.
Some code.
Paragraph 4.