Otter@lemmy.ca to Programming@programming.devEnglish · vor 3 MonatenCSS finally adds vertical centering in 2024build-your-own.orgexternal-linkmessage-square72fedilinkarrow-up1331arrow-down14cross-posted to: webdev@programming.devhackernews@lemmy.smeargle.fans
arrow-up1327arrow-down1external-linkCSS finally adds vertical centering in 2024build-your-own.orgOtter@lemmy.ca to Programming@programming.devEnglish · vor 3 Monatenmessage-square72fedilinkcross-posted to: webdev@programming.devhackernews@lemmy.smeargle.fans
minus-squarebitjunkie@lemmy.worldlinkfedilinkarrow-up18·vor 3 MonatenThat’s because under flexbox for horizontal alignment you use a different property called justify-content.
minus-squarerefalo@programming.devlinkfedilinkarrow-up4arrow-down2·vor 3 MonatenRight, which isn’t confusing at all /s
minus-squarebitjunkie@lemmy.worldlinkfedilinkarrow-up2·vor 3 MonatenThere’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/