CSS margin-bottom property
Attribute definitions and instructions
margin-bottom property is set to the bottom margin of the element.
Note: negative values are allowed.
Defaults: | 0 |
---|---|
inherit: | no |
version: | CSS1 |
JavaScript syntax: | object .style.marginBottom = "10px" |
Browser Support
Figures in the table represent the first browser to support the version number of the property.
属性 | |||||
---|---|---|---|---|---|
margin-bottom | 1.0 | 6.0 | 1.0 | 1.0 | 3.5 |
Property Value
value | description |
---|---|
auto | Browser CALCULATION margin. |
length | Specific provisions in terms of units under margin values, such as pixels, centimeters, and the like. The default value is 0px. |
% | Based on a predetermined percentage of the parent element width bottom margin. |
inherit | Provisions should be inherited from the parent element from the outside. |
related articles
CSS tutorial: CSS Margin