May 2003
Intermediate to advanced
480 pages
10h 9m
English
These properties let you set sizes of the individual margins around an element.
Inherited: No
See also: Section B.63margin
Each value can be a CSS length (px, pt, em, etc.), a percentage of the parent element's width (even for the top and bottom margins), or the auto constant, which tells the browser automatically to calculate and use a margin that will allow the element to assume its default (or assigned) width.
Initial value: 0[10]
[10] This initial value is for generic elements. Browsers use an internal style sheet that defines default margins for elements such as headings, paragraphs, block quotes, and list items.
CSS Version: 1
Works in all ...
Read now
Unlock full access