Appearance:
margin: <value>
Possible Values:
[ <length> | <percentage> | auto ]{1,4}
Initial Value:
Not defined
Applies to:
All elements
Inherited:
No
BODY { margin: 5em } /* all margins 5em */
P { margin: 2em 4em } /* top and bottom margins 2em, left and right margins 4em */
DIV { margin: 1em 2em 3em 4em } /* top margin 1em, right margin 2em, bottom margin 3em, left margin 4em */
Note: adjoining vertical margins are collapsed to use the maximum of the margin values. Horizontal margins are not collapsed.
Using the margin property allows one to set all margins; alternatively, the properties margin-top, margin-bottom, margin-left, and margin-right may be used.