CSS padding-bottom property
Description of property definition and use
Padding-bottom properties Set the bottom padding (bottom blank) of an element.
Note: Negative values are not allowed.
Default: | 0 |
---|---|
Inherited: | no |
Version: | CSS1 |
JavaScript syntax: | object .style.paddingBottom="2cm" |
Browser support
The numbers in the table support the first browser version number of the property.
Attributes | |||||
---|---|---|---|---|---|
padding-bottom | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
The property value
Value | Describe |
---|---|
length | Specifies fixed lower margin values in specific units, such as pixels, centimeters, etc. The default is 0px. |
% | Defines the inner margin based on the percentage of the width of the parent element. This value does not work in all browsers as expected. |
inherit | Specifies that the inner margin should be inherited from the parent element. |
Related articles
CSS tutorial: CSS Padding