7

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
[-] emmanuelw@jlai.lu 2 points 2 months ago

Why not body {margin: auto;}?

[-] claim_arguably@lemdro.id 2 points 2 months ago

I'm a beginner doing the odin project. So i don't really know.

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

CSS

733 readers
4 users here now

founded 2 years ago
MODERATORS