Using SASS to Select All Elements Except the First
2 min readMay 17, 2023
If you are a web developer there would be many times that you need to apply styles for all elements but the first. One place that instantly comes to mind is when styling breadcrumbs on a page.
There are a few different ways to do this, and options that first spring to my mind are to use:
- CSS
:not(:first-child)
Selector