ScanSkill

margin-right

The margin-right property sets the margin to the right of the element.

Syntax

margin-right: value | auto;

Example

.mydiv{
 margin-right: 20px;
 background-color: red;
}
margin-right

Property Values

value: sets the provided value as the margin to the right of an element.

auto: automatically sets the margin to the right of an element.