CSS margin-bottom property
Description of property definition and use
The margin-bottom property sets the lower margin of the element.
Note: Negative values are allowed.
Default: | 0 |
---|---|
Inherited: | no |
Version: | CSS1 |
JavaScript syntax: | object .style.marginBottom="10px" |
Browser support
The numbers in the table support the first browser version number of the property.
Attributes | |||||
---|---|---|---|---|---|
margin-bottom | 1.0 | 6.0 | 1.0 | 1.0 | 3.5 |
The property value
Value | Describe |
---|---|
auto | The browser calculates the bottom margin. |
length | Specify the lower margin values in specific units, such as pixels, centimeters, etc. The default is 0px. |
% | Specifies the bottom outer margin based on the percentage of the width of the parent element. |
inherit | Specifies that the margin should be inherited from the parent element. |
Related articles
CSS tutorial: CSS Margin