Tailwind CSS Utilities (Beginner → Advanced)

Tailwind Class Generated CSS What it does
blockdisplay: block;Element behaves as a block
inlinedisplay: inline;Element behaves inline
inline-blockdisplay: inline-block;Inline element with width/height
flexdisplay: flex;Enables flexbox layout
griddisplay: grid;Enables CSS grid
hiddendisplay: none;Hides the element
relativeposition: relative;Positions element relative to itself
absoluteposition: absolute;Positions relative to nearest parent
fixedposition: fixed;Fixed relative to viewport
stickyposition: sticky;Sticks on scroll
inset-0top:0; right:0; bottom:0; left:0;Fills parent container
flex-rowflex-direction: row;Horizontal flex layout
flex-colflex-direction: column;Vertical flex layout
items-centeralign-items: center;Align items vertically center
justify-centerjustify-content: center;Align items horizontally center
justify-betweenjustify-content: space-between;Space between items
gap-4gap: 1rem;Spacing between items
grid-cols-3grid-template-columns: repeat(3, minmax(0,1fr));Creates 3 equal columns
col-span-2grid-column: span 2 / span 2;Spans 2 grid columns
m-4margin: 1rem;Outer spacing
mx-4margin-left/right: 1rem;Horizontal margin
p-4padding: 1rem;Inner spacing
py-2padding-top/bottom: 0.5rem;Vertical padding
w-fullwidth: 100%;Full width
w-screenwidth: 100vw;Viewport width
h-screenheight: 100vh;Viewport height
max-w-lgmax-width: 32rem;Limits width
text-centertext-align: center;Centers text
text-smfont-size: 0.875rem;Small text
font-boldfont-weight: 700;Bold text
leading-relaxedline-height: 1.625;Relaxed line height
text-whitecolor: #ffffff;White text
bg-blue-500background-color: rgb(59 130 246);Blue background
borderborder-width: 1px;Adds border
rounded-lgborder-radius: 0.5rem;Rounded corners
shadow-mdbox-shadow: medium;Medium shadow
opacity-50opacity: 0.5;Half transparent
cursor-pointercursor: pointer;Pointer cursor
select-noneuser-select: none;Disable text selection
transitiontransition-property: all;Enable transitions
duration-300transition-duration: 300ms;Animation duration
ease-in-outtransition-timing-function: ease-in-out;Smooth animation
z-10z-index: 10;Layer priority