Why centering with CSS is so hard?

You may be familiar with the meme shown up above. For many people centering something with CSS was and still can be a struggle.

Currently it is much easier with flex and justify-content and align-items.

But for years centering was somehow tiresome. What is that?

We have to move to the beginning of the web and HTML and CSS standards at that time.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tom Smykowski

Tom Smykowski

Follow me, if you want to become 10x Developer. I am sharing tips based on 20 years of coding, that gave me a satisfactory career and balanced life.