Skip to content

How to make horizontally centered in Tailwind CSS? #191

Answered by d4tdev
montasim asked this question in Q&A

You must be logged in to vote
  1. Tailwind center div with grid center

class="grid h-screen place-items-center"

  1. Tailwind center div with flex center

class="flex items-center justify-center h-screen"

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by montasim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants