CSS Properties

User Guide / CSS Properties

margin

Syntax

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

Initial Value

margin: 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