Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1675

How do I align all items vertically on their centers within a containing div? [duplicate]

$
0
0

I don't do a ton of front end so this one's got me baffled, hope you can help.

I have multiple controls aligned horizontally in a flex box. The controls are of slightly different heights which causes them to be wonky looking with how they layout vertically within the div. Is there a way to specify that I want them to also vertically align on their center points (e.g. control 1 has height of 31px so its center is at pixel 16, control 2 has a height of 35px so its center is at pixel 18)

thanks


Viewing all articles
Browse latest Browse all 1675

Trending Articles