left

UK[left] 美[lɛft]

adj.Left, left;leftist

n.Left , left; [military] left wing; left wing, radical

adv. to the left; on the left

v. to leave (past tense and past participle of leave)

css left property syntax

Function: The left attribute specifies the left edge of the element. This property defines the offset between the left margin edge of the positioned element and the left edge of its containing block.

Description: For static elements, it is auto; for length values, it is the corresponding absolute length; for percentage values, it is the specified value; otherwise, it is auto. For relatively defined elements, left always evaluates to right.​

Note: All major browsers support the left attribute. The attribute value "inherit" is not supported in any version of Internet Explorer (including IE8).

css left property example

<html>
<head>
<style type="text/css">
img
{
  position:absolute;
  left:100px;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<img src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" />
</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance