CSS:margin-left
From MDC
[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.
- Initial value: 0
- Applies to: all elements
- Inherited: no
- Percentages: refer to
widthof closest block-level ancestor - Media:
visual - Computed value: the percentage as specified or the absolute length
[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
.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