I saw a .class1 ~ .class2 selector today, and had to look it up.
div ~ p {}
Selects every <p> element that are preceded by a <div> element. In other words,
<div></div>
<p></p>
The <p></p> would be selected, right?
And then there's the + selector:
div + p {}
Selects all <p> elements that are placed immediately after <div> elements. In other words,
<div></div>
<p></p>
Am I right to think these are equivalent, or am I missing something?