Skip to Content


CSS Reference / margin-left

margin-left

Sets the left margin of an element. Negative values are allowed.

Values:

  • auto
  • length
  • %

Examples:

  1. margin-left: 2px;
  2. margin-left: -3em;

Browser support:

  • Internet Explorer 4+
  • Netscape 4+
  • Opera 3.5+

Related properties:

back to list



Search

Sponsors

Logo design for $149

Advertise here