center div with tailwind code example
Example 1: tailwind absolute center
absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2
Example 2: tailwind align-items: center;
Class Properties
items-start align-items: flex-start;
items-end align-items: flex-end;
items-center align-items: center;
items-baseline align-items: baseline;
items-stretch align-items: stretch;