W3C home > Mailing lists > Public > www-style@w3.org > August 1999

Re: Q: z-index and the body element

From: Ian Hickson <py8ieh@bath.ac.uk>
Date: Mon, 30 Aug 1999 00:26:56 +0100 (BST)
To: Axel Dahmen <a.dahmen@infozoom.de>
cc: "'www-style@w3.org'" <www-style@w3.org>, Bert Bos <Bert.Bos@sophia.inria.fr>
Message-ID: <Pine.GSO.4.04.9908300016230.7651-100000@mary.bath.ac.uk>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:00 GMT