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&quot


Related posts

Tags: , ,

1 Response

By Nephi

April 30, 2012

That’s a smart answer to a tricky qeusiotn


Post your response

Copyright © 2010 - 2013 Handy CSS Designed By Anotix, Powered By WordPress, all right reserved.