Using SASS to Select All Elements Except the First

holly bourneville
2 min readMay 17, 2023
Image by Pexels from Pixabay

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

--

--

holly bourneville

Hi Im Holly! I’m from New Zealand. I’m in my first job as a Front End Web Developer and want to share my learnings and thoughts along the way!