HTML and CSS Reference
In-Depth Information
nonbreaking space    ) before including our conventional doc-
ument text.
This is important enough to repeat: normal document content following
a <layer> tag is positioned directly under the layer it follows. You can
circumvent this effect using an inline layer, described in " The <ilayer>
Tag (Antiquated) " section later in this chapter.
H.3.1.3. The above, below, and z-index attributes
Layers exist in three dimensions, occupying space on the page and
stacked on top of one another as well as on top of conventional docu-
ment content. As we mentioned earlier, layers normally are stacked in
order of their appearance in the document: layers at the beginning get
covered by later layers in the same display area.
You can control the stacking order of the layers with the above , below ,
and z-index attributes for the <layer> tag. These attributes are mutually
exclusive; use only one per layer.
The value for the above or below attribute is the name of another layer
in the current document. Of course, that referenced layer must have a
name attribute whose value is the same name you use with the above or
below attribute in the referring <layer> tag. You also must have created
the referenced layer earlier in the document; you cannot refer to a layer
that comes later.
In direct contradiction with what you might expect, Netscape 4 puts the
current layer below the above -named layer and above the below -named
layer. [*] Oh, well. Note that the layers must occupy the same display
space for you to see any effects.
[*] One cannot help but imagine that the above and below attributes were implemented in the wee
Let's use our drop-shadow layer example again to illustrate the above
Search WWH ::

Custom Search