Asked • 05/29/19

CSS metaphysics: WHY is page vertical alignment so difficult?

Relative to the page, horizontal alignment in CSS is easy - a `margin:0 auto` gets you by much of the time, and a `text-align:center` for some other cases.My question to the gurus is not how to vertically align, but **why** is it so much more difficult? Why isn't there `margin:auto 0`? I mean, from a programming perspective.Theoretically, it seems like the same algorithms would apply to both types of centering.

2 Answers By Expert Tutors

By:

Brandon T. answered • 05/30/19

Tutor
5.0 (42)

Web Developer with 2 years of experience

Anonymous A. answered • 12/29/19

Tutor
0 (0)

HTML, CSS and Web Design Expert

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.