Re: Q: z-index and the body element

On Thu, 29 Jul 1999, Axel Dahmen wrote:

> I've got a question regarding the z-index property: Why can I still see
> elements which I've put *behind* the BODY element (see example below)?

Because your browser has a bug or doesn't support z-index.

> <BODY STYLE="z-index: 0; background-color: #456789;">
> <P STYLE="z-index: -1; color: #fedcba;">This is a test showing a text that
> shouldn't be visible as it lies behind the body element <EM>("z-index"
> property equals "-1").</EM>
> </BODY>

Note that setting the z-index on BODY is unnecessary to show this.

-- 
Ian Hickson
: Is your JavaScript ready for Nav5 and IE5?
: Get the latest JavaScript client sniffer at 
: http://developer.netscape.com/docs/examples/javascript/browser_type.html

Received on Sunday, 29 August 1999 19:27:00 UTC