margin-left CSS Property
margin-left property is used when any amount of space is required outside left edge of an element. This property also support negative values.
Definition Of margin-left property:
The margin-left is a property of CSS by which we can specify the left side margin of HTML elements.
What margin-left property can do?
This margin-left property lets you to set the space after left border of an element. This space is exclusive of width of border’s width and padding. This property will work with almost all major browsers.
How to use CSS margin-left property?
Syntax:
1
margin-left: marginThickness | aut
Example:
1
margin-left:2px;
How to use CSS margin-left property in Javascript?
You can set value of margin-left property with Javascript in following manner:
1
object.style.marginLeft="5cm"
Related posts
- text-replace
- background-break
- font
- border-bottom
- margin-top
- border-spacing
- left
- border-left-width
- border-right-width
- target-position
Tags: css margin left, margin-left, margin-left property

1 Response
April 30, 2012
That’s a smart answer to a tricky qeusiotn
Post your response