Pro@programming.dev to Technology@lemmy.worldEnglish · 3 days agoYou no longer need JavaScript: an overview of what makes modern CSS so awesomelyra.horseexternal-linkmessage-square43linkfedilinkarrow-up1222arrow-down112file-textcross-posted to: webdev@programming.dev
arrow-up1210arrow-down1external-linkYou no longer need JavaScript: an overview of what makes modern CSS so awesomelyra.horsePro@programming.dev to Technology@lemmy.worldEnglish · 3 days agomessage-square43linkfedilinkfile-textcross-posted to: webdev@programming.dev
minus-squareClay_pidgin@sh.itjust.workslinkfedilinkEnglisharrow-up53arrow-down3·3 days agoIs it finally possible to align things on the first try with CSS?
minus-squaredreadbeef@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up10·3 days agohttps://build-your-own.org/blog/20240813_css_vertical_center/
minus-squareClay_pidgin@sh.itjust.workslinkfedilinkEnglisharrow-up1·edit-23 days agoLol, I am on chromium 138 and it still doesn’t work! Nevermind, it was vertical centering. I see. Progress!
minus-squaredreadbeef@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up4·3 days agohorizontal centering is justify-content: center
minus-squareVictor@lemmy.worldlinkfedilinkEnglisharrow-up2·2 days agoDepends on your knowledge, of course. 👍
Is it finally possible to align things on the first try with CSS?
No.
https://build-your-own.org/blog/20240813_css_vertical_center/
Lol, I am on chromium 138 and it still doesn’t work!
Nevermind, it was vertical centering. I see. Progress!
horizontal centering is
justify-content: center
If display is
flex
.Goes without saying.
Depends on your knowledge, of course. 👍