Back to CSS1 Reference | CSS1 Properties
Prev margin-right | Next padding
- Property
- margin-top
- Values
- <length>, <percentage>, auto
- Initial
- 0
- Inherited
- no
This property sets the top margin of an element:
H1 { margin-top: 2em }
A negative value is allowed, but there may be implementation-specific limits.