2 min read
Centering Things in CSS, Once and for All
Four reliable ways to center an element, and how to pick the right one.
- #Flexbox
- #Grid
- #Layout
Categories
Layout tricks, modern selectors and everything else that makes pages look right.
Four reliable ways to center an element, and how to pick the right one.
Build a dark theme that follows the system setting and can be toggled by hand, with a few lines of CSS.