Otter@lemmy.ca to Programming@programming.devEnglish · 3 months agoCSS finally adds vertical centering in 2024build-your-own.orgexternal-linkmessage-square48fedilinkarrow-up1325cross-posted to: webdev@programming.devhackernews@lemmy.smeargle.fans
arrow-up1325external-linkCSS finally adds vertical centering in 2024build-your-own.orgOtter@lemmy.ca to Programming@programming.devEnglish · 3 months agomessage-square48fedilinkcross-posted to: webdev@programming.devhackernews@lemmy.smeargle.fans
minus-squarebitjunkie@lemmy.worldlinkfedilinkarrow-up16·3 months agoThat’s because under flexbox for horizontal alignment you use a different property called justify-content.
minus-squarerefalo@programming.devlinkfedilinkarrow-up5·3 months agoRight, which isn’t confusing at all /s
minus-squarebitjunkie@lemmy.worldlinkfedilinkarrow-up2·3 months agoThere’s a learning curve but it makes sense once you’ve used it for a bit. I recommend the frog game: https://flexboxfroggy.com/
That’s because under flexbox for horizontal alignment you use a different property called
justify-content
.Right, which isn’t confusing at all /s
There’s a learning curve but it makes sense once you’ve used it for a bit. I recommend the frog game: https://flexboxfroggy.com/