r/csshelp • u/binary_numbers • Jun 04 '21
Request Button centering
I'm trying to position a few buttons on a picture, but the buttons change size sometimes (on purpose).
But they look off when they become bigger since the thing goes to the right and doesn't center itself.
So how do I make it that the button always finds the center?
8
Upvotes
2
u/mayaswelltrythis Jun 04 '21
Define and position a flex container. Use flexbox to center on the axis you need.