CSS Property: margin-right
[this page | pdf | back links]
The CSS (CSS1) margin-right property sets the width of
the right margin of an element.
Valid property values
(other than inherit
and initial) are:
|
Value
|
Description
|
|
length
|
Any specified margin
size as a CSS length
|
|
%
|
Margin specified as
percentage of width of container
|
|
auto
|
Browser calculates
margin
|
|
Default Value:
|
0
|
|
JavaScript syntax:
|
e.g. object.style.marginRight="30px"
|
|
Inherited:
|
No
|
|
Animatable:
|
Yes
|
NAVIGATION LINKS
Contents | Prev | Next | CSS Properties