Easy Tutorial
❮ Css3 Pr Nav Left Css3 Pr Box Shadow ❯

CSS padding-bottom Property

Example

Set the bottom padding of a p element to 25px:

p {
    padding-bottom: 25px;
}

Property Definition and Usage

The padding-bottom property sets the bottom padding (space) of an element.

Note: Negative values are not allowed.

Default value: 0
Inherited: no
--- ---
Version: CSS1
--- ---
JavaScript syntax: object.style.paddingBottom="2cm"
--- ---

Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
padding-bottom 1.0 4.0 1.0 1.0 3.5

Property Values

Value Description
length Specifies a fixed bottom padding value in units such as pixels, centimeters, etc. The default value is 0px.
% Defines the bottom padding as a percentage of the parent element's width. This value may not work as expected in all browsers.
inherit Specifies that the bottom padding should be inherited from the parent element.

Related Articles

CSS Tutorial: CSS Padding

❮ Css3 Pr Nav Left Css3 Pr Box Shadow ❯