1. Home
  2. Computing & Technology
  3. Web Design / HTML

left

By Jennifer Kyrnin, About.com

left Description:

The left property defines how far the left of the element is offset from the left of the container element.

left in CSS Versions:

left Syntax:

left: <length> | <percentage> | auto | inherit

  • <length>
    A precise unit of meaurement.
  • <percentage>
    A percentage of the height of the containing block.
  • auto
    Determined by widths and heights of the elements.
  • inherit
    The element should have the same value as the parent element.

left Initial Value:

auto

left Applies To:

Positioned elements.

left Inheritance:

This property is not inherited.

left Browser Support:

left Media Type:

  • Visual

left Examples:

Standard left property

<p style="left : 5px;">
This paragraph should display 5 pixels from the left of the container element.
</p>

left Special Notes:

  • Negative units are permitted.

More left Information

Return to the Style Library

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. Style Properties
  6. CSS Style Property: left

©2008 About.com, a part of The New York Times Company.

All rights reserved.