Different ways of centering things in CSS

Hey All,

Along my journey of learning CSS, I came across all the many ways of centering things… I just though I would share it was you. If I have missed anything please let me now.

Hope this helps!



Hey @ainneo nice way to show up how many different ways we have to center elements, my favorite one is through Flexbox, I remember how much I was happy when I found it out and I stopped using all these other fancy ways to move things around the screen :laughing:
your CodePen is very useful, thanks for sharing it.

1 Like

thank you!!! Yes, I was happy to find Flexbox way of center things too.