Home → The Classics → Farai's Codelab
Y’all Know There’s Like A Dozen Ways To Center Things In CSS Right?
Published:
Once in a while, someone will joke about how hard centering things in CSS is. Thing is, there are many ways to center things in CSS. It depends on what that thing is, where it is, whether it’s inline or block level, has a set width and height and so on, but centering things in CSS is totally possible.
Here’s a few articles on how to center things that you can refer to in case you get stuck:
- Centering in CSS: A Complete Guide on CSS Tricks
- Centering in CSS on Google’s web.dev
- Centering things on W3C’s style tips
While I don’t have a perfect understanding of CSS, I understand that centering things is possible. I might make a video or nice illustration about it if I get the chance.