HomePlansOrderNetworkSupportManualsWeb ToolsAbout UsCornerstone HostingCornerstone Hosting
rib

CSS Index ~ CSS Structure ~ CSS Properties

Top Margin

Syntax: margin-top: <value>
Possible Values: <length> | <percentage> | auto
Initial Value: 0
Applies to: All elements
Inherited: No

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 Index ~ CSS Structure ~ CSS Properties

Copyright © 1997 John Pozadzides and Liam Quinn. All rights reserved.


Home | Plans & Prices | Order Forms | Our Network | Customer Support | Online Manuals | Webmaster Tools | About Us
Acceptable Use Policy | Terms Of Service | Privacy Statement | Contact Us  
Copyright © 2002 Cornerstone Hosting All rights reserved.