Forum Moderators: open
Can someone tell me a simple way to get layers (not frames) in html.
- What tag is used to create a layer?
- What code is used to give the position of the layer?
- How do I fix which layer overlaps which ie which is on top.
Reason:
I have a flash menu with a transparent background. I want it to overlap part of my web page, the menu items will only be seen when you mouse-over them.
We are using the name "layers" here to mean divs (or other block elements) that are positioned in the same location on screen -- "on top of each other" as it were. In many cases, the visibility of various "layers" is turned off and on through some user action, but it is also possible to simply layer up many visible elements.
So the css id #layer1 would be applied to a div in most cases, or perhaps some other block level element. The use of the word "layer" in the name of the ID is completely arbitrary and you can name it anything that works for you.
Netscape 4 included a proprietary <layer> HTML element, but it was never adopted as a standard, and so it vanished in future browser releases.
Also, Macromedia's Dreamweaver software uses the term "layer" internally, as part of their program interface. They use it to describe divs that function in the way we are using it here.
But in HTML today, there is no such thing as a <layer> element.