Learn when to nest CSS selectors and when to avoid it. Nesting pseudo-selectors, parent modifiers, media queries, and selectors that don't work without nesting is recommended. CSS naming conventions such as BEM and SUIT recommend decreasing the specificity of selectors whenever possible.

5m read timeFrom cloudfour.com
Post cover image
Table of contents
Avoid NestingWhat Should Be NestedConclusion
1 Comment

Sort: