HTML <ilayer> Tag

Advertisements


Description

The HTML <ilayer> tag is used to create a layer that occupies space in the containing text flow. Subsequent content is placed after the space occupied by the <ilayer>.

This is in contrast to the <layer> tag, which creates a layer above the containing text flow, allowing subsequent content to be placed under the layer just created.

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML ilayer Tag</title>
</head>
<body>
This <ilayer top="4">word</ilayer> is shifted down, while
this <ilayer left="10">one</ilayer> is shifted over. With a negative
value, words can be moved <ilayer top="-4">up</ilayer> and to
the <ilayer left="-10">left</ilayer>.
</body>
</html>

This will produce following result:

This word is shifted down, while this one is shifted over. With a negative value, words can be moved up and to the left.

The result will only work on Netscape 4.

Global Attributes

This tag supports all the global attributes described in - HTML Attribute Reference

Specific Attributes

The HTML <ilayer> tag also supports following additional attributes:

AttributeValueDescription
above layer
name
The name of the inline layer that will be positioned directly above the current layer in the z-order.
background URLA filename or URL for an image upon which the inline layer's text and images will appear.
below layer
name
The name of the inline layer that will be positioned directly below the current layer in the z-order.
bgcolor rgb(x,x,x)
#xxxxxx
colorname
The color to use for the inline layer background.
clip numberThe coordinates of the inline layer's viewable area.
height pixelsThe inline layer's height, in pixels.
left numberThe position of the left side of the inline layer. If the current inline layer is part of another layer.called the parent layer-then the position is relative to the parent layer.
name layer
name
The name of the inline layer.
pagex numberThe position of the left side of the inline layer relative to the browser window.
pagey numberThe position of the top of the inline layer relative to the browser window.
src URLThe URL of a page that will appear inside the inline layer.
top numberThe position of the top of the inline layer. If the current inline layer is part of another layer--called the parent layer--then the position is relative to the parent layer.
visibility show
hide
inherit
Determines whether the inline layer is visible.
width pixelsThe inline layer's width, in pixels.
z-index numberThe inline layer's position within the z-order. Inline layers with higher Z-INDEX values are positioned above inline layers with lower Z-INDEX values.

Event Attributes

This tag supports all the event attributes described in - HTML Events Reference

Browser Support

ChromeFirefoxIEOperaSafariAndroid
NoNoNoNoNoNo

html_tags_reference.htm

Advertisements