How To Align Div Vertical Across Full Screen In Tailwind CSS ?

Forums CSSHow To Align Div Vertical Across Full Screen In Tailwind CSS ?
Staff asked 6 months ago

How to align div vertical across the full screen in Tailwind CSS?

Answers (1)

Add Answer
Umang Ramani Marked As Accepted
Staff answered 4 months ago

You can easily align div vertical across the full screen using flex property in Tailwind CSS. Tailwind uses justify-center and items-center property which is an alternative to the flex-property in CSS.

<div class="flex h-screen justify-center items-center">
    . . .   
</div>

 

Subscribe

Select Categories