Visit Mozilla.org

CSS:margin-left

From MDC

« CSS Reference

[edit] Summary

margin-left property of an element set the margin space required on the left side of an element. A negative value is also allowed.

[edit] Syntax

margin-left: <length> | <percentage> | inherit | auto;

[edit] Values

<length>
Specifies a fixed width.
<percentage>
a percentage with respect to the width of the containing block.

[edit] Examples

View Live Examples

  .content {margin-left: 5%}

  .sidebox {margin-left: 10px}

[edit] Notes

[edit] Specifications

[edit] Browser compatibility

(FIXME)

Browser Lowest Version
Internet Explorer ?
Firefox ?
Netscape ?
Opera ?
Safari ?

[edit] See also

margin, margin-bottom, margin-left, margin-right, margin-top , -moz-margin-start, -moz-margin-end, border, padding