Padding and Margins

Learn about the padding and margins properties.

We'll cover the following

Padding and margins are not next to each other. They are always separated by the border. But Tailwind handles them similarly enough that it is convenient to learn about them together. Tailwind provides around 245 different classes to manage padding. They usually follow this pattern: .p{direction}-{size}.

Get hands-on with 1400+ tech skills courses.