Answers for "tailwind center div content"

3

tailwind absolute center

absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2
Posted by: Guest on April-09-2021
2

tailwind flex align items center

<div class="flex items-center ...">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>
Posted by: Guest on December-17-2020
0

tailwind align-self center

<!-- align-self: center -->
<div class="flex ...">
  <div>1</div>
  <div class="self-center">2</div> 
  <!-- ^ center-aligned div -->
  <div>3</div>
</div>
Posted by: Guest on August-04-2021

Code answers related to "tailwind center div content"

Browse Popular Code Answers by Language