Difference between revisions of "CSS GUIDE MARGIN BOTTOM"
m |
|||
Line 54: | Line 54: | ||
== Specification Conformance == | == Specification Conformance == | ||
− | *[http://www.w3.org/TR/CSS1# | + | *[http://www.w3.org/TR/CSS1#margin-bottom CSS 1 ] |
− | *[http://www.w3.org/TR/CSS21/ | + | *[http://www.w3.org/TR/CSS21/box.html#margin-properties CSS 2.1] |
− | *[http://www.w3.org/TR/css3- | + | *[http://www.w3.org/TR/css3-box/#the-margin CSS 3] |
== Browser Compatibility == | == Browser Compatibility == |
Latest revision as of 20:56, 14 December 2006
This document is a work in progress and is subject to change.
Contents
Summary
The margin-bottom property is used to set the bottom margin of an element.
Applicability: | The margin-bottom property can be used for all CSS elements. | |
Media Group: | Visual | |
Inherited: | No |
Syntax
TARGET_ELEMENT { margin-top: value }
Legal Values
Values can be entered in 3 ways:
Method | Example |
---|---|
auto | Takes default margin size from browser |
length | Defines a fixed bottom margin with the specified value |
percentage | Defines a variable bottom margin with the specified value |
See usage examples section for more details.
Mozilla Recommended Values
Usage Examples
TARGET_ELEMENT { margin-bottom: 10px } TARGET_ELEMENT { margin-bottom: -20px } TARGET_ELEMENT { margin-bottom: 1em }
Notes
The World Wide Web Consortium (W3C) provides a free online CSS validation service.