DEV Community

Discussion on: CSS Selectors crash course for beginners

Collapse
 
resspm profile image
resspm • Edited

General sibling combinator: The ~ combinator selects siblings. This means that the second element follows the first (though not necessarily immediately), and both share the same parent. <

Hi, if you want to select one or more previous brothers, how should I do with CSS? Or should I use JS?
Thanks.
Renato