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

left

By , About.com Guide

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
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

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

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

All rights reserved.