November 21, 2021 10:53 am GMT
Original Link: https://dev.to/everenjohn/how-to-center-a-single-item-tailwind-css-2p3p
How to center a single item (Tailwind CSS)
Need to center an item? Maybe a spinner in the middle of a screen?
Cheat code to Center an item:
<div class="flex justify-center"><div> whatever you wanna center here.</div></div>
Original Link: https://dev.to/everenjohn/how-to-center-a-single-item-tailwind-css-2p3p
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To