Welcome to the Treehouse Community
Looking to learn something new?
Amandeep Pasricha14,932 Points
Why are there not equal margins on all sides of the box?
If margin: auto calculates the same amount of space on all sides of the box, why is the box mostly at the top of the page and not more centred in the middle>
Steven Parker221,297 Points
margin: auto" setting only applies to the left and right. There's no auto setting for the vertical dimension.
If you need vertical centering, "flexbox" would be a good choice.