Padding - Shorthand Property

div {
  padding: 25px 50px 75px 100px;
}
  • The padding property is a shorthand property for individual padding properties.
  • If the padding property has three values: padding: 25px 50px 75px; (top padding is 25px, right and left paddings are 50px, bottom padding is 75px).
  • If the padding property has two values: padding: 25px 50px; (top and bottom paddings are 25px, right and left paddings are 50px).

Padding - Shorthand Property — Structure map

Clickable & Draggable!

Padding - Shorthand Property — Related pages: