Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You need to select only a specific set of siblings of a particular element.
If you’re looking to select the adjacent sibling of a particular element, then you can use the adjacent sibling combinator (+). Similar to the child (>) combinator, the sibling combinator expects a selector expression on each side. The righthand expression is the subject of the selector, and the lefthand expression is the sibling you want to match. Here’s some example HTML markup: