CSS padding-bottomProperty
Property definition and usage instructions
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 indicate the first browser version number that supports the property.
| Property | |||||
|---|---|---|---|---|---|
| padding-bottom | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Property value
| Value | Description |
|---|---|
| length | Specifies a fixed bottom padding value in specific units, such as pixels, centimeters, etc. Default value is 0px. |
| % | Defines the bottom padding as a percentage based on the width of the parent element. This value will 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
other extensions