general sibling combinator
Planted Jul 2026 Tended 3 months ago Linked from 1 note
Contents
The general sibling combinator - ~ - selects the defined elements that are located somewhere after the preceding (prior defined) element and that are within the same parent.
example
p ~ img would style all images that are located somewhere after a paragraph provided they share the same parent.