My favorites
|
Sign in
doctype
Documenting the open web
Project Home
Wiki
Issues
Source
Search
Search within:
All wiki pages
Featured pages
Current pages
Deprecated pages
for
Updated
Sep 19, 2008
by
pilgrim
Labels:
about-css
,
is-css-property
,
from-w3c
MarginLeftCSSProperty
The margin-left property sets the left margin of a box.
You are here:
Home
>
CSS Reference
>
Properties
>
margin-left
Usage
Values
<margin-width>
inherit
Browser compatibility
Compatibility table legend
Test
IE8
IE7
IE6
FF3
FF2
Saf3
Op9
Chrome
style.marginLeft reflects <div style='margin-left: 0'>
N
N
N
N
N
N
Y
N
style.marginLeft reflects <div style='margin-left: 1cm'>
Y
Y
Y
N
N
N
Y
N
style.marginLeft reflects <div style='margin-left: 1em'>
Y
Y
Y
N
N
N
Y
N
style.marginLeft reflects <div style='margin-left: 1ex'>
Y
Y
Y
N
N
N
Y
N
style.marginLeft reflects <div style='margin-left: 1in'>
Y
Y
Y
N
N
N
Y
N
style.marginLeft reflects <div style='margin-left: 1mm'>
Y
Y
Y
N
N
N
Y
N
style.marginLeft reflects <div style='margin-left: 1pc'>
Y
Y
Y
N
N
N
Y
N
style.marginLeft reflects <div style='margin-left: 1pt'>
Y
Y
Y
N
N
N
Y
N
style.marginLeft reflects <div style='margin-left: 1px'>
Y
Y
Y
Y
Y
Y
Y
Y
style.marginLeft reflects <div style='margin-left: 42%'>
Y
Y
Y
N
N
N
Y
N
style.marginLeft reflects <div style='margin-left: auto'>
Y
Y
Y
N
N
N
Y
N
style.marginLeft reflects <div style='margin-left: none'>
N
N
N
N
N
N
Y
N
Further reading
The margin-left property in CSS 2.1
The margin-left property on MSDN
The history of the margin-left property on blooberry.com
The margin-left property on the SitePoint CSS Reference
Sign in
to add a comment
Hosted by