Baseline Widely Layout
margin
The margin CSS property sets space around an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left.
Baseline Status
Widely Available
Since 2015-07-29
First Core Launch
Safari 1
2003-06-23
Core-3 Stability
1,998d (5.5y)
Last: Chrome (2008-12-11)
BCD Keys Mapped
10
Group: Layout
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Safari | desktop | 1 | 2003-06-23 |
| Firefox | desktop | 1 | 2004-11-09 |
| Safari on iOS | mobile | 1 | 2007-06-29 |
| Chrome | desktop | 1 | 2008-12-11 |
| Firefox for Android | mobile | 4 | 2011-03-29 |
| Chrome Android | mobile | 18 | 2012-06-27 |
| Edge | desktop | 12 | 2015-07-29 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| css.properties.margin | CSS | 1,998d (5.5y) |
| css.properties.margin-bottom | CSS | 1,998d (5.5y) |
| css.properties.margin-bottom.auto | CSS | 1,998d (5.5y) |
| css.properties.margin-left | CSS | 1,998d (5.5y) |
| css.properties.margin-left.auto | CSS | 1,998d (5.5y) |
| css.properties.margin-right | CSS | 1,998d (5.5y) |
| css.properties.margin-right.auto | CSS | 1,998d (5.5y) |
| css.properties.margin-top | CSS | 1,998d (5.5y) |
| css.properties.margin-top.auto | CSS | 1,998d (5.5y) |
| css.properties.margin.auto | CSS | 1,998d (5.5y) |