Defines a layer container holding content.
Platform Support
IE | Netscape | Mozilla | Opera | Safari | no | 4.0-4.8 | no | no | no |
---|
Example
This example displays two short text paragraphs with an ilayer between them:
<layer name="dogLayer" src="dogs.htm" left="350" top="350" height="100" width="100" />
Remarks
Netscape only. Use a div element instead of a layer.
Attribute Detail
Attribute | IE | Netscape | Mozilla | Opera | Safari |
---|---|---|---|---|---|
Name of the layer above the element. | no | 4.0 | no | no | no |
Specifies the URL for the background image for the document or element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Name of the layer below the element. | no | 4.0+ | no | no | no |
Specifies the background color for the document or element. Specify either a color name or RGB color. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
CSS class assigned to the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Specifies x,y coordinates of the upper left and lower right corners of the element. | no | 4.0+ | no | no | no |
Height of the element (in pixels). | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Unique identifier for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Number of pixels that the element is offset from the left. | no | 4.0+ | no | no | no |
Unique name identifier for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Specifies whether to "clip" the content of the layer if the content exceeds the layer boundaries, or leave the content as-is. | no | 4.0+ | no | no | no |
Horizontal position of the element in the browser window. | no | 4.0+ | no | no | 1.0+ |
Vertical position of the element in the browser window. | no | 4.0+ | no | no | 1.0+ |
Inline style for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Short text description for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Number of pixels that the element is offset from the top. | 4.0+ | no | no | no | 1.0+ |
Specifies whether the element is hidden or shown. | no | 4.0+ | no | no | no |
Width of the element (pixels or percentage). | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+ |
Positive integer specifying where an element is stacked in relation to other layers. | no | 4.0+ | no | no | 1.0+ |