Difference between revisions of "CSS GUIDE MARGIN"

From CDOT Wiki
Jump to: navigation, search
(Syntax)
(Legal Values)
Line 8: Line 8:
  
 
== Legal Values ==
 
== Legal Values ==
Only Postive values (i.e > 0) are allowed)
+
 
 +
Values can be specified as pixels (px) or percentage (%)
 +
 
 +
 
 +
Sets the properties for the margins. The values comes in %  (defines a margin in % of the total height/width of the document), length (defines a fixed margin), and auto (the browser sets a margin).
 +
 
 +
Negative values are allowed.
  
 
== Mozilla Recommended Values ==
 
== Mozilla Recommended Values ==

Revision as of 13:04, 8 December 2006

Summary

The margin property is used for setting the four margins in one declaration.

Inherited: No

Syntax

TARGET_ELEMENT {margin: 10px}

Legal Values

Values can be specified as pixels (px) or percentage (%)


Sets the properties for the margins. The values comes in % (defines a margin in % of the total height/width of the document), length (defines a fixed margin), and auto (the browser sets a margin).

Negative values are allowed.

Mozilla Recommended Values

Usage Examples

Notes

Specification Conformance

Browser Compatibility

See Also