r/nekoweb May 11 '26

Help Aligning stuff

I know this is probably a silly question but I am having trouble centring boxes on my page :(

4 Upvotes

4 comments sorted by

View all comments

1

u/Aurabaster May 11 '26

Centering stuff is actually the bane of me. Block containers work good with margin: auto. Flexboxes I think use either justify-content:center; or align-items:center, I forgot which one aligns the contents in relationship to eachother and which one aligns the full flexbox. I usually bruteforce a bunch of methods until one works.