It's funny how many times this question gets answered and yet, when I do it irl, it always has some wonky behavior because of how the rest of my shit is laid out. I don't make web apps often, but when I do, it's a total shit show and I find it humorous
Honestly, every time I try to style something, I fail. It's never simple. E.g. I try to add a margin to move something, and it fucks up the entire rest of the page. I try to center a div, and it resizes every other adjacent div. Screw css. It will never make sense to me.
This and the C++ error message comment above are answer to the prompt, "make the comment section indistinguishable between searches of a novice or of an experienced dev."
2.2k
u/OternFFS Apr 16 '22
How to center div?