20 points · by DerekBickerton · 5y ago · 3 comments
Also, for centering, I definitely prefer using position: absolute and transform: translate(-50%, -50%)
Using grid/flexbox fixes that and other corner-cases.
SmolCSS
Minimal snippets for modern CSS layouts and components
smolcss.dev