Difference between revisions of "CSS GUIDE MARGIN"
(→Syntax) |
(→Legal Values) |
||
Line 8: | Line 8: | ||
== Legal Values == | == 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 == | == Mozilla Recommended Values == |
Revision as of 13:04, 8 December 2006
Contents
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.