margin-right Description:
The margin-right property defines the right margin of the element.
margin-right in CSS Versions:
margin-right Syntax:
margin-right: <length> | <percentage> | auto
- length
A specific length (include unit of measure). - percentage
A percentage of the height of the closest block-level ancestor. - auto
Allows the user-agent to define the margin based on inheritance and pre-set user-agent rules.
margin-right Initial Value:
0
margin-right Applies To:
All elements.
margin-right Inheritance:
This property is not inherited.
margin-right Browser Support:
margin-right Examples:
standard margin-right
<p style="margin-right : 2em;">
This paragraph has a 2 em right margin.
</p>
margin-right Special Notes:
- Negative values are permitted, but may be affected by implementation limits.

