HTML Dog
Skip to navigation

CSS Property: margin-top

The top margin of a box, outside the top border, padding, and content areas.

Possible Values

ValueNoteExample
[length]10px
[percentage]Calculated as a percentage of the containing box’s width.25%
auto
inherit
initial
unset

Example


#badger { margin-top: 3em; }

Browser support