Learn flex forget pixels and screen measurements.
Comment on No JS, No CSS, No HTML: online "clubs" celebrate plainer websites
SonOfAntenora@lemmy.world 1 day agoCSS is mostly evil when you have to center elements in the page.
Zexks@lemmy.world 18 hours ago
garretble@lemmy.world 1 day ago
text-align: center
or
margin: auto
or
grid
or
flexbox
It’s really not that hard now.
Bilaketari@reddthat.com 1 day ago
What if I still have to support IE6?
garretble@lemmy.world 1 day ago
Then quit your job and get one that doesn’t need to worry about stuff Microsoft doesn’t support anymore.
tomenzgg@midwest.social 1 day ago
I made a promise, Mr. garretble: a promise. “Don’t you make me use any other browser,” said my nan; and I don’t mean to. I don’t mean to.
She’s still using Windows XP.
Gumbyyy@lemmy.world 8 hours ago
Don’t
dontbelievethis@sh.itjust.works 1 day ago
Then your life choices should be of more concern then centering a div.
victorz@lemmy.world 17 hours ago
Matriks404@lemmy.world 13 hours ago
I got you covered:
JustARaccoon@lemmy.world 12 hours ago
In a position relative parent
frezik@lemmy.blahaj.zone 1 day ago
Someone will thank you for your service. Not me, but someone.