this post was submitted on 20 Dec 2025
7 points (100.0% liked)
CSS
666 readers
1 users here now
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Not sure what best practice is broadly, but in general
display: flexis the first tool I reach for if I need to position child elements a little more carefully.It's good for most things more complex than just margin/padding/text-align. If it gets too complex for flexbox, dig into CSS grid.