HTML CSS Reference/CSS Attributes and Javascript Style Properties/margin bottom
Содержание
"margin-bottom" Example
<source lang="html4strict">
<html> <head> </head> <body>
The following image has a bottom margin of 3mm.
<img src="http://www.wbex.ru/style/logo.png"
height="50" width="50" style="margin-bottom="3mm"">
</body> </html>
</source>
"margin-bottom" is applied to
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | | |
| ||| |<body> <button> |
| || | |
| |<dir>| | |currentStyle <custom> | | |
defaults | | | || | |
- | | | <embed> | | |<fieldset> | | |<form> <hn> | | |
|| |<iframe> <img> | | |<input type="button"> <input type="checkbox"> | | |<input type="file"> <input type="image"> | | |<input type="password"> <input type="radio"> | | |<input type="reset"> <input type="submit"> | | |<input type="text"> | | |<isindex> |
| |<label>- | | |<listing> <marquee> | | |<menu> <nobr> | | |<object>
| | |
| | |runtimeStyle | | || | | | | || | |style | | || | |
<textarea> | | | | | | | | | <xmp> | +----------------+--------------------------------------------------------------+ </source>
"margin-bottom" Possible Values
<source lang="html4strict"> Possible Values auto The default; bottom and top margins are equal. integer A floating-point number followed by a unit designator. percentage Percentage of the height of the parent element.
</source>
"margin-bottom" Syntax and Note
<source lang="html4strict"> Note: Define the bottom margin. Syntax:
element { margin-bottom: value } elementID.style.marginBottom = "value" document.all.elementID.style.marginBottom = "value" // IE only
</source>