How to center elements in CSS?
By Henri Parviainen
I recently shared some ways to center elements with CSS on Twitter.
Here is a blog version of those centering tips.
Enjoy! 😊
1. Center horizontally
2. Center vertically
3. Center both horizontally and vertically
There are also many other ways for centering stuff in CSS but these are some of the most useful and simple solutions that I use all the time.
If you are interested in these kinds of tips, follow @webdevolution_ on Twitter for daily tips like these.
Thanks for reading!