Home » CSS Tutorial » CSS Properties » margin-top
margin-top
CSS Property Info :
| Syntax: |
margin-top: <value> |
| Possible Values: |
<length> | <percentage> | auto
|
| Initial Value: |
0 |
| Applies to: |
All elements |
| Inherited: |
No |
CSS Browser Support :
Internet Explorer 3+
Netscape 4+
Opera 3.6+
W3C's CSS Level 1+
CSS Profile 1.0
CSS Property Description :
The margin-top property sets the top margin of an element by specifying a length or a percentage. Percentage values refer to the parent element's width. Negative margins are permitted.
For example, the following rule would eliminate the top margin of a document:
BODY { margin-top: 0 }
Note that adjoining vertical margins are collapsed to use the maximum of the margin values.
CSS Bugs / Problems :
none
Adapted by style-sheets.com, maker of Style Studio, powerful CSS Editor for Windows.
Copyright © John Pozadzides and Liam Quinn. All rights reserved.
Home » CSS Tutorial » CSS Properties » margin-top
|