Windframe
Build Tailwind UIs that actually look good!
.jpg)
The py-4 class applies 1rem (16px) padding only to the top and bottom sides of an element.
Try each class live and inspect the CSS output.
py-4padding-top: 1rem; padding-bottom: 1rem;The py-4 class applies 1rem (16px) padding only to the top and bottom sides of an element.
1<div class="py-4 bg-red-500 text-white">2 Vertical Padding Only3</div>
Vertical Padding Only
Add the py-4 class directly to your HTML element:
1<div class="py-4">2 <!-- Your content here -->3</div>
Use Tailwind's responsive prefixes to apply py-4 at specific breakpoints:
1<div class="sm:py-4 md:py-4 lg:py-4">2 Responsive element3</div>
sm:py-4 — applies from 640px and upmd:py-4 — applies from 768px and uplg:py-4 — applies from 1024px and upYou can extend or override this utility in your tailwind.config.js. See the Tailwind CSS documentation for details on customizing your theme.
Windframe is an AI visual editor for rapidly building stunning web UIs & websites
