The margin-top property specifies the top margin of a box.
The margin-bottom property specifies the bottom margin of a box.
The margin-left property specifies the left margin of a box.
The margin-right property specifies the right margin of a box.
Value | Description |
---|---|
auto | The browser sets the margins |
length | Default 0 pt. Specifies a fixed width. Note: Negative values are allowed, but there may be browser-specific limits! |
percentage | Specifies a width in %. The % is calculated with respect to the width of the box's containing block |