margin-top

Previous- line-height  |  Next-margin-right

Description

The margin-top property sets the top margin of an element by specifying a length or a percentage. Percentage values refer to the parent element's width. Negative margins are permitted.

Note that adjoining vertical margins are collapsed to use the maximum of the margin values.



Applies to : all elements

Inherited : no

Possible Values
<length> | <percentage> | auto | inherit

Example(s)
h1 { margin-top: 2em }

Previous- line-height  |  Next-margin-right