Open main menu

CDOT Wiki β

Changes

CSS GUIDE MARGIN BOTTOM

1,825 bytes added, 20:50, 14 December 2006
no edit summary
<span style="margin:0;background:#ffff33;font-size:120%;font-weight:bold;border:1px solid #a3b0bf;text-align:left;color:#000;padding:0.2em 0.4em;">This document is a work in progress and is subject to change.</span><br /><br />
== Summary ==

The margin-bottom property is used to set the bottom margin of an element.
<table border="0">
<tr>
<td><b>Applicability:</b></td><td>The margin-bottom property can be used for all CSS elements.<td>
</tr>
<tr>
<td><b>[http://developer.mozilla.org/en/docs/CSS:%40media#Media_groups Media Group:]</b>
</td><td>Visual</td>
</tr>
<tr>
<td><b>Inherited:</b></td><td>No</td>
</tr>
</table>

== Syntax ==
<pre>
TARGET_ELEMENT { margin-top: value }
</pre>

== Legal Values ==
Values can be entered in 3 ways:

<table border="2">
<tr>
<th>Method</th><th>Example</th>
</tr>
<tr>
<td>auto</td><td>Takes default margin size from browser</td>
</tr>
<tr>
<td>length</td><td>Defines a fixed bottom margin with the specified value</td>
</tr>
<tr>
<td>percentage</td><td>Defines a variable bottom margin with the specified value</td>
</tr>
</table>

See [[#Usage Examples | usage examples]] section for more details.

== Mozilla Recommended Values ==

== Usage Examples ==
<pre>
TARGET_ELEMENT { margin-bottom: 10px }
TARGET_ELEMENT { margin-bottom: -20px }
TARGET_ELEMENT { margin-bottom: 1em }
</pre>

== Notes ==
The [http://www.w3.org World Wide Web Consortium (W3C)] provides a free online [http://jigsaw.w3.org/css-validator/ CSS validation service].

== Specification Conformance ==
*[http://www.w3.org/TR/CSS1#font-weight CSS 1 ]
*[http://www.w3.org/TR/CSS21/fonts.html#font-boldness CSS 2.1]
*[http://www.w3.org/TR/css3-fonts/#font-styling CSS 3]

== Browser Compatibility ==

== See Also ==

<big>[http://zenit.senecac.on.ca/wiki/index.php/CSS_guide#CSS_Properties Back to CSS Index]</big>
1
edit