Prev | Current Page 558 | Next

Craig Grannell

"The Essential Guide to CSS and HTML Web Design"


none | length |
percentage
Sets the top margin. Defaults to 0. Note
that browsers usually override the zero
value by applying default margins to most
block elements. Set margins explicitly to 0
to cancel the browser??™s default. See
Chapter 2, ???Zeroing margins and padding
on all elements.???
auto | length |
percentage
Sets the right margin. Defaults to 0. Note
that browsers usually override the zero
value by applying default margins to most
block elements. Set margins explicitly to 0
to cancel the browser??™s default. See
Chapter 2, ???Zeroing margins and padding
on all elements.???
auto | length |
percentage
Sets the left margin. Defaults to 0. Note
that browsers usually override the zero
value by applying default margins to most
block elements. Set margins explicitly to 0
to cancel the browser??™s default. See
Chapter 2, ???Zeroing margins and padding
on all elements.???
auto | length |
percentage
Sets the bottom margin. Defaults to 0.
Note that browsers usually override the
zero value by applying default margins to
most block elements. Set margins explicitly
to 0 to cancel the browser??™s default. See
Chapter 2, ???Zeroing margins and padding
on all elements.???
auto | length |
percentage
Shorthand for defining margin properties
in a single declaration. Examples:
margin: 0; (sets all margins to 0)
margin: 0 10px 20px 30px; (sets
individual margins for each edge)
See also Chapter 2, ???Content margins and
padding in CSS??? and ???Working with CSS
shorthand for boxes.


Pages:
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570