CSS
How to style your website.
Linters
- stylelint/stylelint (0)
- eslint/eslint (0): Just gained support recently
- CSSLint/csslint (0): The OG, but is long dead.
- biomejs/biome (0)
Selectors
These two guides should cover most of what you need to know:
Normalize
CSS comes with some default styles that are not consistent across browsers. You may follow this guide to get a reasonable baseline.
Or just use one of the following:
info
If you're using a CSS framework, it may already include a normalize file.
Layout
- Use Flexbox for 1D layout
- Use Grid for 2D layout