TIL a single line of `margin-inline: auto` beat my whole 40-line flexbox centering setup
I used to wrap everything in a flex container with justify-content and align-items and three nested divs just to center a card, and my stylesheet was a mess of helper classes. Then a coworker in Spokane showed me `margin-inline: auto` on a block element with a max-width, and it did the same job in one line with way less markup. I switched my whole layout file over on a Tuesday and cut about 30 lines of wrapper divs out of the HTML. Now I keep flexbox for rows that need to share space, not for plain centering. What's the one property that made you feel silly for how long you avoided it?