5 ms·
I lost 2kg trying to center a div once. Jokes aside. Interesting article. I think the title assumes an answer but in reality the article is a gateway to furthe
by foxbee 4y ago
I lost 2kg trying to center a div once.
Jokes aside. Interesting article. I think the title assumes an answer but in reality the article is a gateway to further studies. Worthwhile read nonetheless.
- quickthrower2 4y agoIt used to be so easy when <table> was socially acceptable.
- girishso 4y agoCouldn't agree more.
- elcritch 4y agoStraight up raw CSS Grid is my new favorite. It let's you do what we used to do with tables. It even improves it with fr units. Though not sure what to do with the extra brain cycles that don't goto div soup layouts.
- girishso 4y agoMe too. I can't get my head around all the properties for Flexbox, but CSS Grid makes everything so simple. My latest trick is to swap around the "cells", without changing the HTML markup (generated by simple_form Ruby gem).
- bearmode 4y agoIt's way easier with flexbox now, though?
- randomsearch 4y agoCentring divs is now an out of date joke, grandad, get with it. Flex box ruined it. Seriously, I wonder what the modern equivalent is? Using dev tools to find the source of an unwanted space? What do you mean property X is inherited but only from the last positioned ancestor with a flex size of pi and a negative z index?