Earlier quoted context omitted.
It's time to learn flexbox
It's too bad flexbox isn't as easy to understand as box model; that puts the breaks on adoption, regardless of how well it handles the centering scenario.
How to Center in CSS (2015)
71–74 of 74 posts
Re: How to Center in CSS (2015)
#7212 years ago at W3C styles I've proposed to solve it as simple as this: .in-the-middle { width:max-content; height:auto; margin:*; // "coils" on all sides moving it // to the middle of free space in container } So these tons of tools, essays and doctoral dissertations on "how to center stuff" would not be needed. Here is the story: https://terrainformatica.com/2018/12/11/10-years-of-flexboxi...
[deleted]
Re: How to Center in CSS (2015)
#73Earlier quoted context omitted.
I've been doing HTML for ~10 years and have never seen this before. Apparently, it was deprecated with HTML4 already, though I'm not sure why.
Now I feel old. On the other hand, apparently I'm doing HTML for >20 years. Let me tell you about blink and marquee ... ;)
For some reasons, I've encountered those before. :)