DEV Community


Adjacent Selector in CSS

fahad07_khan profile image Fahad Khan ・1 min read

The CSS adjacent sibling selector is used to select the adjacent sibling of an element. It is used to select only those elements which immediately follow the first selector.

NOTE: This selector will only work on child elements.

simple but powerful

Discussion (0)

Editor guide