CSS Padding-bottom property
Examples
Set Fill the bottom of a P element:
p {
padding-bottom: 2 cm ;}
Attribute definitions and instructions
padding-bottom property to set a filling (space) element at the bottom.
Note: negative values are not allowed.
Defaults: | 0 |
---|---|
inherit: | no |
version: | CSS1 |
JavaScript syntax: | object .style.paddingBottom = "2cm" |
Browser Support
Figures in the table represent the first browser to support the version number of the property.
属性 | |||||
---|---|---|---|---|---|
padding-bottom | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Property Value
value | description |
---|---|
length | Fixed under the provisions of the specific unit in terms of padding values, such as pixels, centimeters, and the like. The default value is 0px. |
% | By definition of the percentage of the parent element based on the width of the margins. This value does not work as expected, as in all browsers. |
inherit | Provision should be in the lower margins from the parent element inheritance. |
related articles
CSS tutorial: CSS the Padding