ScanSkill

margin-left

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

Syntax

margin-left: value | auto;

Example

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

Property Values

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

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