this post was submitted on 20 Dec 2025
7 points (100.0% liked)

CSS

693 readers
5 users here now

founded 2 years ago
MODERATORS
 

I have a .container div just after body that contains everything in page how to center it?

you are viewing a single comment's thread
view the rest of the comments
[–] brian@programming.dev 3 points 1 month ago

there are more aggressive css "resets" that set the default display type to flex. there's no problem making anything a flexbox if it displays the way you want it to