CSS Adjacent Sibling selector

CSS Adjacent Sibling selector

The adjacent sibling combinator in CSS isn’t a selector on its own, but a way of combining two selectors.

The plus sign (+) is the adjacent sibling combinator.

This is mostly useful for when using semantic markup and needing to adjust for certain scenarios in which elements are directly next to each other.

Supports all major browsers.

要查看或添加评论,请登录

Milap Patel的更多文章

社区洞察

其他会员也浏览了