py-2: Tailwind CSS padding class
The py-2 class creates padding of 0.5rem or 8px unit on the top and bottom of the element.
py-2 (Vertical Padding 2)
This class creates padding on the y axis of the element. The py-2 class creates padding of 0.5rem
or 8px
unit on the top and bottom of the element.
Example Usage
html
<span class="py-2 inline-block bg-teal-400">Item</span>
Preview
Item
Windframe is a drag and drop builder for rapidly building tailwind css websites and UIs
Start building stunning tailwind UIs!
