CSS:margin-right
From MDC
[edit] Summary
margin-right property of an element set the margin space required on the right 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-right:<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