4 ms·
honest question, but what would the problem be with having "margin: auto" work vertically as it does horizontally? EDIT: I mean, what freedom would have been l
by riffraff 13y ago
honest question, but what would the problem be with having "margin: auto" work vertically as it does horizontally?
EDIT: I mean, what freedom would have been lost when it was designed to work like this, not talking of changing it now.
- jessedhillon 13y agoWhat would you do with this case then? .outer {height: 1200px; width: 800px;} .inner {margin: auto;} <div class="outer"> <p class="inner">This is centered vertically</p> <p>But where should this go?</p> </div> And what if both p elements had the `inner` class?