CSS Margin-top Property
margin-top is used to set, or change the default top-margin of a given element, for instance h1 may have a top-margin by default.
Possible Values
- auto (Default)
- Units of Measurement
Example:
The following example removes the top-margin of h1 headings.
h1 {
margin-top: 0;
}Inherited? NO!