Let me tell you about a guy named Chandler. Chandler was an excellent programmer. He used to write clean and decoupled code. He used to architecture robust and extensible design systems. He was loved by all.

One day, he wanted to center a div, and everything changed for him…

Honestly, we all struggle with CSS and try to find our peace with it. We’ve all found ourselves frustrated with centering things in CSS.

Allow me to quickly tell you 5 ways by which you can center a div vertically and horizontally —

#css #web-development #front-end-development #html

5 ways to center a div using CSS.
1.60 GEEK