@sushmavySubmitted about 1 year ago
I found it difficult to position box in the center vertically ( distributing space equally between top and bottom. float didn't help nor margin ( its helped for horizontal centering ).
I found it difficult to position box in the center vertically ( distributing space equally between top and bottom. float didn't help nor margin ( its helped for horizontal centering ).
You have done a good job. But there are some things you have to keep in mind.
By the way, to center a flex-item, you should give the container "justify-content: center; (along the main axis) align-items: center; (along the other axis)