CSS Margin-left Property

The Margin-left property is used to control the left-margin of elements on a page.

The margin-left property of CSS, sets the left-margin of a given element.

Possible Values

Example:

This example sets the right-margin of paragraphs to 4em, paragraphs will have the distance of 4em to the left of its containing element.

p {
  margin-left: 4em;
}

Inherited? NO!

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.