left

left

CSS left Property
The CSS left property is used to offset an element's left position. It moves the element to the right and the position property of the element determines behavior of the placement it gets.
CSS CODE EXAMPLE
<style type="text/css">
.divClass {
    background: #AFF;
    border: #0BB 1px solid;
    width:200px;
    position: relative;
}
#myDiv {
    left: 100px;
}
</style>
<div class="divClass">my 1st div</div>
<div class="divClass" id="myDiv">my 2nd div</div>
<div class="divClass">my 3rd div</div>
 
my 1st div
my 2nd div
my 3rd div

Possible Values:

Pixel value 
Example: "16px"

em unit relative value
Example: "1.5em"

Percentage value
Example: "10%"


Related Properties

top
bottom
right

0 Response to "left"

Post a Comment