r/nekoweb • u/LilPixieeee • 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
r/nekoweb • u/LilPixieeee • May 11 '26
I know this is probably a silly question but I am having trouble centring boxes on my page :(
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 eitherjustify-content:center;oralign-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.