September 2001
Intermediate to advanced
640 pages
31h 42m
English
margin-top, margin-right, margin-bottom, margin-left
These properties specify the amount of margin on specific sides of
the element (as called by name). Values for
margin-right and margin-left
can be specified in length units, as a percentage based on the size
of the element’s overall box width, or as
auto, which automatically fills in a margin amount
based on other elements on the page. margin-top
and margin-bottom may be specified in length units
or auto (not in percentages).
length|percentage|autoIMG {margin-top: 0px}
IMG {margin-right: 12px}
IMG {margin-bottom: 0px}
IMG {margin-left: 12px}All elements
No
Read now
Unlock full access