Back
The plus sign (+) is for the next sibling.
Is there an equivalent for the previous sibling?
You can use ~ for general successor sibling but there is no "previous sibling" selector. It means that the element comes after this one, but not necessarily immediately after.
31k questions
32.8k answers
501 comments
693 users