CSS 3 · Selectors and the box model

Control rule priority with layers

Order groups of styles so later layers win, regardless of specificity.

@layer reset, base, components;

@layer components {
  .button { padding: 0.5rem 1rem; }
}

Official CSS 3 documentation

More selectors and the box model commands

All selectors and the box model commands · CSS 3 cheatsheet

Was this page helpful?