27
Appreciation post: the day I stopped writing CSS with inline styles and discovered flexbox
I used to slap style='margin-left: 20px' on every single div in my first HTML project last summer and then spent 3 hours fixing spacing because of a missing closing tag, until a guy on a coding Discord said 'dude just use flexbox' and now I can center a div in 3 seconds flat has anyone else had that random helper save them from a mess?
2 comments
Log in to join the discussion
Log In2 Comments
paige8701mo ago
Flexbox honestly saves lives, went from spaghetti inline styles to clean layouts in one afternoon after someone told me to stop fighting the browser. Absolute game changer when you realize you can just type display: flex and forget about float hacks forever. Centering things actually makes sense now, no more guessing margins.
2
kim.sandra1mo ago
Wait @paige870 are you saying I didn't HAVE to spend three hours crying over a div that just would NOT center horizontally? Because I definitely did that last week and my therapist is gonna be SO disappointed in me.
1