---
layout: single
property_name: margin
---
Shorthand property for
Removes all margins.
When using 1 value, the margin is set for all 4 sides.
When using 2 values: To remember the order think about the values you haven't defined. If you enter 2 values (top/right), you omit setting bottom and left. Because bottom is the vertical counterpart of top, it will use top’s value. And because left is the horizontal counterpart of right, it will use right’s value.
When using 3 values: To remember the order think about the values you haven't defined. If you enter 3 values (top/right/bottom), you omit setting left. As right’s counterpart, it will use its value.
When using 4 values: To remember the order, start at the top and go clockwise.
#margin
margin-top margin-right margin-bottom and margin-left.default
margin: 0;
margin: 30px;
margin: 30px 60px;
margin: 30px 60px 45px;
margin: 30px 60px 45px 85px;