0 votes
1 view
in Web Technology by (32.1k points)

The plus sign (+) is for the next sibling.

Is there an equivalent for the previous sibling?

1 Answer

0 votes
by (14.5k points)

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.