175) inline elements.
Compatibility
Opera Safari Firefox Internet Explorer
9.2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
Full Full Full Full Full Full Full Buggy Buggy Buggy
Internet Explorer version 6 in some instances incorrectly bases vertical margin
percentage values on the width of the body element, rather than the containing
block.
Internet Explorer for Windows versions up to and including 7 differ in their handling
of margin collapse from the CSS2.1 specifications. See Collapsing Margins (p. 148)
for a detailed analysis.
Internet Explorer for Windows versions up to and including 7 don??™t support the
value inherit.
SPEC
version initial inherited
CSS1 0 NO
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE5.5+
FULL FULL FULL BUGGY
Example
This style rule assigns a margin of 20 pixels
to the left of paragraphs within the element
with ID "example":
#example p {
margin-left: 20px;
}
Box Properties
207 Box Properties
margin-left
margin-left: { length | percentage | auto |
inherit } ;
This property defines the horizontal
distance from the left border edge of the
element concerned to the edge of its
containing block, or the element that??™s
horizontally adjacent to it.
Pages:
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316