CSS Property: margin-right
The right margin of a box, outside the right border, padding, and content areas.
Possible Values
Value | Note | Example |
---|---|---|
[length] | 10px | |
[percentage] | Calculated as a percentage of the containing box’s width. | 25% |
auto | ||
inherit | ||
initial | ||
unset |
Example
#deer { margin-right: auto; }