DEV Community

[Comment from a deleted post]
Collapse
 
sanspanic profile image
Sandra Spanik

How to center pretty much anything 🥲

Collapse
 
eelstork profile image
Tea

That's... zen.

Collapse
 
helenanders26 profile image
Helen Anderson

+1 for this. I have to consciously think how I am having to spell 'center' or 'color' using American spelling

Collapse
 
dannyvaneeckhoutte profile image
dannyvaneeckhoutte

Gray...

Collapse
 
waylonwalker profile image
Waylon Walker • Edited

Flexbox completely changed this for me. Now I just have to start firing away at justify-content: center, align-items:center; align-content:center, margin: auto, text-align: center until something sticks.

Collapse
 
sanspanic profile image
Sandra Spanik

This is so true! When I'm using flexbox and none of above work, that's when I know I'm in big trouble