CSS Property: margin-top
The top margin of a box, outside the top border, padding, and content areas.
Possible Values
Value | Note | Example |
---|---|---|
[length] | 10px | |
[percentage] | Calculated as a percentage of the containing box’s width. | 25% |
auto | ||
inherit | ||
initial | ||
unset |
Example
#badger { margin-top: 3em; }