CSS Margin-Top Property
CSS 1 |
CSS 2 |
CSS 3 |
|
|
|
|
Description
Specifies the top margin for the element.
Syntax
margin-top: [value];
Possible values
- [margin-width]
- inherit
Initial Value
0
Applies To
All elements
Inherited
No
Media
Visual
Example
body {
margin-top: 1em;
margin-right: 2em;
margin-bottom: 3em;
margin-left: 2em;
}