Left

Position the left edge of an element relative to its normal position (relative positioning) or relative to the left edge of its container (absolute or fixed positioning)

Syntax
      left: length | percentage | auto | inherit ;

length - A positive number will move the element to the right, a negative number left.
percentage - Set the left edge as a percentage of the containing element. Negative values are allowed
auto - Let the user agent (web browser) calculate the left edge position.
inherit - inherit from the parent element.

Examples:
h1 { position: relative; left: 25px; }
.ss64class { position: absolute; left: -2em; }

#SS64id { position: relative; left: 25pt; }

Try it:

This is a sample of text with a CSS border. The border helps to display the position of the text DIV.

Browser Support: CSS 2 supported in all major browsers.

“Happiness makes up in height what it lacks in length” ~ Robert Frost

Related:

bottom - Bottom position of a positioned element
top - Top position of a positioned element
right - Right position of a positioned element
position - Positioning method for an element (static, relative, absolute or fixed)


© Copyright SS64.com 1999-2014
Some rights reserved