HTML and CSS Reference
In-Depth Information
Name
margin-right
Values:
<length> | <percentage> | auto
Initial value:
0
Applies to:
All elements
Inherited:
No
Percentages:
Refer to the width of the containing block
Computed value:
For percentages, as declared; for length values, the absolute length
Description:
Defines the width of the right margin for an element. Negative values are permitted, but cau-
tion is warranted (see margin ) .
Examples:
img {margin-right: 30px;}
ol {margin-right: 5em;}
Search WWH ::




Custom Search