HTML and CSS Reference
In-Depth Information
clip This attribute clips a layer's content to a specified rectangle. All layer content outside
that rectangle will be rendered transparent. The clip rectangle is defined by two x,y pairs
that correspond to the top x , left y , and bottom x , right y coordinate of the rectangle. The
coordinates are relative to the layer's origin point, 0,0, in its top-left corner, and might have
nothing to do with the pixel coordinates of the screen.
height This attribute is used to set the height of the layer, either in pixels or as a percentage
of the screen or region the layer is contained within.
left This attribute specifies, in pixels, the left offset of the layer. The offset is relative to its
parent layer, if it has one, or to the left browser margin if it does not.
name This attribute assigns to the layer a name that can be referenced by programs in a
client-side scripting language. The id attribute also can be used.
overflow This attribute specifies what should happen when the layer's content exceeds its
rendering box and clipping area. A value of none does not clip the content, while clip clips
the content to its dimensions or defined clipping area.
pagex This attribute is used to set the horizontal pixel position of the layer relative to the
document window rather than any enclosing layer.
pagey This attribute is used to set the vertical pixel position of the layer relative to the
document window rather than any enclosing layer.
src This attribute specifies the URL that contains the content to be included in the layer.
Using this attribute with an empty element is a good way to preserve layouts under older
browsers.
top This attribute specifies, in pixels, the top offset of the layer. The offset is relative to its
parent layer, if it has one, or to the top browser margin if it is not enclosed in another layer.
visibility This attribute specifies whether a layer is hidden ( hidden ), shown ( show ), or
inherits ( inherits ) its visibility from the layer enclosing it.
width This attribute specifies a layer's width, in pixels or as a percentage value of the
enclosing layer or browser width.
z-index This attribute specifies a layer's stacking order relative to other layers. Position is
specified with positive integers, with 1 indicating the bottommost layer.
Examples
<!-- 90s appropriate example to illustrate this element -->
<layer name="scene" bgcolor="#00FFFF">
<layer name="Shaq" left="100" top="100">
<img src="shaq.gif">
</layer>
<layer name="Rodman" left="200" top="100"
visibility="hidden">
<img src="pinkhair.gif">
</layer>
</layer>
Search WWH ::




Custom Search