DEV Community

Fahad Khan
Fahad Khan

Posted on

Adjacent Selector in CSS

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)