margin
margin-bottom
margin-left
margin-top
PROPERTY: margin-right
margin-right
:
length
|
percentage
|
auto
Compatibility:
IE4+ N4+
Version:
Level 1
Inherited:
No
The
margin-right
property allows you to set the dimensions for the right margin.
length
The
length
value can be in any of the following seven units. Use the abbreviation.
Length
Abbrev.
centimeters
cm
ems
em
inches
in
millimeters
mm
picas
pc
pixels
px
points
pt
percentage
The
percentage
value is based upon the total width being defined as 100%.
auto
The
auto
value directs the browser to automatically calculate the right margin. By declaring
auto
, you can ensure that any previous declaration will not effect the right margin.
Code:
p { margin-right: 25mm; }
p { margin-right: 1.0in; }
p { margin-right: 15pc; }
p { margin-right: 36pt; }
p { margin-right: 11.5%; }
p { margin-right: auto; }
Output:
Click to see example in separate window
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information