The best CSS Padding-bottom property Tutorial In 2024, In this tutorial you can learn Examples,Attribute definitions and instructions,Browser Support,Property Value,related articles,
Set Fill the bottom of a P element:
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" |
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 |
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. |
CSS tutorial: CSS the Padding