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; }
}
CSS 3 · Selectors and the box model
Order groups of styles so later layers win, regardless of specificity.
@layer reset, base, components;
@layer components {
.button { padding: 0.5rem 1rem; }
}
Was this page helpful?