0
How to center a single item (Tailwind CSS)
source link: https://dev.to/everenjohn/how-to-center-a-single-item-tailwind-css-2p3p
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
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>
Enter fullscreen modeExit fullscreen mode
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK