💄
CSS
Frontend Web DevLanguages
  • Introduction
  • Architecture
    • Default Styles
    • Nesting
    • Layers
  • Page
  • layout
    • Grid
    • Flexbox
    • Container Queries
  • Group 1
    • Pseudo
  • More modern stuff
Powered by GitBook
On this page
  1. Architecture

Nesting

Mid-2023 support at 72%

PreviousDefault StylesNextLayers

Last updated 1 year ago

Nesting is a great way to group styles together and not have to repeat code. Browser support is still relatively weak though.

It is viable if using a CSS build system like Lightning CSS or framework plugins, which provide fallback support in your code.

More info here:

CSS Nesting, by Stephanie Eckles
Can I Use CSS Nesting