
The Complete Idiot's Style Sheets Reference
| Index
| Current Category: Margins |
| Previous Style: margin-bottom
| Next Style: margin-right
|
margin-left
The amount of space to the left of the element's box.
Support:
-
Notes:
- In the style sheets box model, the margin is the space outside of the border. It separates the box from other boxes to the left and right, as well as above and below.
See Also:
-
margin,
margin-bottom,
margin-right,
margin-top
Possible Values:
- auto
The default margin used by the element.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
3.0 and later |
4.0 and later |
- [length]
An absolute margin size.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
3.0 and later |
4.0 and later |
- [percentage]
The margin as a percentage of the element's block width.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
3.0 and later |
4.0 and later |
Example:
<IMG SRC="home2.gif" BORDER=1>
<IMG SRC="home2.gif" BORDER=1>
<P>
<IMG SRC="home2.gif" BORDER=1>
<IMG SRC="home2.gif" BORDER=1 STYLE="margin-left: 25px">
How It Looks:
| Index
| Current Category: Margins |
| Previous Style: margin-bottom
| Next Style: margin-right
|
|