DEV Community

Everen-John
Everen-John

Posted on

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>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)