CSS | margin-right Property
The margin-right property in CSS is used to set the right margin of an element. It sets the margin-area on the right side of the element. Negative values are also allowed. The default value of margin-right property is zero.
- length: This property is used to set a fixed value defined in px, cm, pt etc. The negative value is allowed and the default value is 0px.
- auto: This property is used when it is desired and it is determined by browser.
- initial It sets the value of right-margin to its default value.
- inherit: This property is inherited from its parent.
Supported Browsers: The browser supported by margin-right property are listed below:
- Google Chrome 1.0
- Edge 12.0
- Internet Explorer 3.0
- Firefox 1.0
- Safari 1.0
- Opera 3.5