Pro@programming.dev to Technology@lemmy.worldEnglish · 4 months agoYou no longer need JavaScript: an overview of what makes modern CSS so awesomelyra.horseexternal-linkmessage-square16fedilinkarrow-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 · 4 months agomessage-square16fedilinkfile-text
minus-squareClay_pidgin@sh.itjust.workslinkfedilinkEnglisharrow-up38arrow-down2·4 months agoIs it finally possible to align things on the first try with CSS?
minus-squaredreadbeef@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up7·4 months agohttps://build-your-own.org/blog/20240813_css_vertical_center/
minus-squareClay_pidgin@sh.itjust.workslinkfedilinkEnglisharrow-up1·edit-24 months 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·4 months agohorizontal centering is justify-content: center
minus-squareVictor@lemmy.worldlinkfedilinkEnglisharrow-up2·4 months 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: centerIf display is
flex.Goes without saying.
Depends on your knowledge, of course. 👍