Center element with TailwindCSS Flex

How to center vertically and horizontally an element with TailwindCSS ?

Published 2021-06-08

Center an element with TailwindCSS and Flex

<section class="flex justify-center items-center w-screen h-screen text-3xl">
  Hello, I'm vertically and horizontally centered.
</section>

Play with the demo here

Related Tutorials :