Difference between revisions of "CSS GUIDE MARGIN BOTTOM"

From CDOT Wiki
Jump to: navigation, search
 
m
 
Line 54: Line 54:
  
 
== Specification Conformance  ==
 
== Specification Conformance  ==
*[http://www.w3.org/TR/CSS1#font-weight CSS 1 ]
+
*[http://www.w3.org/TR/CSS1#margin-bottom CSS 1 ]
*[http://www.w3.org/TR/CSS21/fonts.html#font-boldness CSS 2.1]
+
*[http://www.w3.org/TR/CSS21/box.html#margin-properties CSS 2.1]
*[http://www.w3.org/TR/css3-fonts/#font-styling CSS 3]
+
*[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.

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:

MethodExample
autoTakes default margin size from browser
lengthDefines a fixed bottom margin with the specified value
percentageDefines 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.

Specification Conformance

Browser Compatibility

See Also

Back to CSS Index