Difference between revisions of "CSS GUIDE LEFT"
(→Syntax) |
(→Legal Values) |
||
Line 24: | Line 24: | ||
== Legal Values == | == Legal Values == | ||
+ | <table border="1"> | ||
+ | <tr> | ||
+ | <th>Value</th><th>Description</th> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>inherit</td><td>Explicitly sets the value to that of the parent</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>auto</td><td>Allows the browser to calculate the left position of the element</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>percentage</td><td>Sets the left position in a percentage from the left edge. Can be 0%-100%</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>length</td><td>Sets the left position in pixels (px), centimeters (cm), etc, from the left edge.</td> | ||
+ | </tr> | ||
+ | </table> | ||
== Mozilla Recommended Values == | == Mozilla Recommended Values == |
Revision as of 22:28, 11 December 2006
This document is a work in progress and is subject to change.
Contents
Summary
The left property is used to horizontally offset from the left edge of an element.
Applicability: | The left property can be used for all CSS elements. | |
Media Group: | Visual | |
Inherited: | No |
Syntax
TARGET_ELEMENT{left: inhert !important} TARGET_ELEMENT{left: auto} TARGET_ELEMENT{left: 20%} TARGET_ELEMENT{left: 20px}
Legal Values
Value | Description |
---|---|
inherit | Explicitly sets the value to that of the parent |
auto | Allows the browser to calculate the left position of the element |
percentage | Sets the left position in a percentage from the left edge. Can be 0%-100% |
length | Sets the left position in pixels (px), centimeters (cm), etc, from the left edge. |