New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →

#padding-bottom

Defines the space inside the element, on the bottom side.

default padding-bottom: 0;

Removes any padding on the bottom.

padding-bottom: 50px;

You can use pixel values.

padding-bottom: 7em;

You can use (r)em values.

The value is relative to the font size:

  • em: relative to the element's current font size
  • rem: relative to <html> the root element's font size

padding-bottom: 30%;

You can use percentage values.
The percentage is based on the width of the element.