Visit Mozilla.org

CSS:margin-right

From MDC

« CSS Reference

[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.

[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

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