Pro@programming.dev to Technology@lemmy.worldEnglish · 16 days agoYou no longer need JavaScript: an overview of what makes modern CSS so awesomelyra.horseexternal-linkmessage-square17fedilinkarrow-up1160arrow-down18file-text
arrow-up1152arrow-down1external-linkYou no longer need JavaScript: an overview of what makes modern CSS so awesomelyra.horsePro@programming.dev to Technology@lemmy.worldEnglish · 16 days agomessage-square17fedilinkfile-text
minus-squareClay_pidgin@sh.itjust.workslinkfedilinkEnglisharrow-up38arrow-down2·16 days agoIs it finally possible to align things on the first try with CSS?
minus-squaredreadbeef@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up7·16 days agohttps://build-your-own.org/blog/20240813_css_vertical_center/
minus-squareClay_pidgin@sh.itjust.workslinkfedilinkEnglisharrow-up1·edit-216 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-up3·16 days agohorizontal centering is justify-content: center
minus-squareVictor@lemmy.worldlinkfedilinkEnglisharrow-up2·15 days agoDepends on your knowledge, of course. 👍
Is it finally possible to align things on the first try with CSS?
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. 👍