Open main menu

CDOT Wiki β

CSS GUIDE MARGIN

Revision as of 13:04, 8 December 2006 by Sherman (talk | contribs) (Legal Values)

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