Post #3118291
2026-06-05 10:03 UTC
The irony is twofold here. A div takes up 100% of it’s parent’s width by default because it’s a block-level element, as all such elements do.
But centering stuff on the page has been trivially ezpz drive at least a decade.
Poor div, always the butt of the joke.
Replies (1)
-
@deadbeef79000@lemmy.nz 2026-06-05 11:37
100%. It’s already centered.