Julianna Messineo• 180
@mathematiCode
Posted
I was having the same problem where my card wouldn't center vertically. I had learned somewhere that "align items" was always for vertical centering but turns out, that's not true. Since we both used flex-direction: column
, "align items" would align the items to make a straight vertical column. So since our flex direction is column, we would have to use justify-content: center;
in order to center the column along the vertical axis.
Marked as helpful
0