The CSS Reset, Again
6 months ago
- #Frontend
- #Web Development
- #CSS
- CSS resets are being modernized with individual care for each project.
- Common reset snippets include setting margin, padding, and box-sizing to border-box.
- Disabling text-size-adjust and using -webkit-font-smoothing for consistent font rendering.
- Using color-scheme: light dark for basic theme support.
- Applying hanging-punctuation for better typography.
- Google Translate requires specific CSS for right-to-left languages.
- Logical properties and text-wrap balance improve layout and readability.
- List style position inside and nested list indentation with lh unit.
- Using cascade layers to prevent specificity collisions.
- Animating to auto and other keywords is now possible.
- Flexbox or grid for all block elements is a debated approach.
- Avoiding unset: all to preserve browser default styles.
- Fluid typography is discouraged due to subpixel rendering issues.