CSS Properties

User Guide / CSS Reference / CSS Properties

margin

Syntax

margin: [ auto | length | percent ] {1..4}

Default

0

Inherited

No

Comments

The margin property is a shorthand for setting the following CSS properties:

margin-bottom
margin-inside
margin-left
margin-outside
margin-right
margin-top