CSS left property
CSS left property represents the distance of left side of current box either from the left side of parent box or from the original position depending upon the value of position property.
The current element should have position property otherwise left property will not work. We apply position:absolute; property to the current element.
left : auto | length | percentage
It does not replace the current box.
It represents the distance of the left side of the current box from the left side of the parent box.
The box is 100px away from the left side of the parent box (absolute position).
Actually percentage represents height of the parent box.
The box is 20% away from the left side of the parent box (absolute position).
It applies to all elements
Was this article helpful?