Thursday 30th of July 2015 02:07:31 PM

Book Home

Cascading Style Sheets: The Definitive GuideSearch this book

Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Index: Z

z-axis: 9.5. Stacking Positioned Elements
z-index property: 9.5. Stacking Positioned Elements


Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U

The containing block of the "root element" (also called the initial containing block) is established by the user agent. In HTML, the root element is the HTML element, although some browsers may incorrectly use BODY.

  • For nonroot elements that are not absolutely positioned, the containing block for an element is set as the content edge of the nearest block-level ancestor. This is true even in relative | V | W | X | Y | Z


    Library Navigation Links

    Copyright © 2002 O'Reilly & Associates, Inc. All Rights Reserved.

    succeeding elements. Navigator 4.x, however, will display the elements with the usual blank line between them, as you can see in Figure 7-26. This is because it's adding the zero values to its own default margins.

    Figure 7-26

    Figure 7-26. Navigator 4.x and margins

    If you want to overcome this space, you can always use negative margins. Here's one possible declaration:

    H1 {margin-bottom: 0;}depending as it does on "words," which are difficult todefine in a programmatic way.

    Example

    vertical-alignIE4 P/P IE5 P/Y NN4 N/N Op3 P/-

    Used to set the vertical alignment ofan element's baseline with respect to its line-height. Negativepercentage values are permitted, and will cause the element to belowered, not raised.

    Example

    are not collapsed. Margins set on floated elements are not collapsed with other margins under any circumstance. Negative values are permitted, but caution is recommended.

    margin-bottomIE4 P/P IE5 P/Y NN4 N/N Op3 Y/-

    This sets the size of the bottom margin of an element. Negative values are permitted, but caution is recommended.

    margin-leftIE4 P/P IE5 P/Y NN4 B/B Op3 Y/-

    This sets the size of the left margin of an element. Negative values are permitted, but caution is

    Any H2 which should be dark blue would then bemarked up as <H2CLASS="dkblue">...</H2>.

    TIP

    It's actually better to pick classnames that are descriptive of the type of information containedwithin, not of the visual effect you're trying to achieve atthe moment. For example, let's say that we want the dark bluecolor to be applied to all H2 elements that are