Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm asking because I remember a time when it wasn't possible
to create a div box on another one, and I was wondering when was it introduced.
It's probably a matter of CSS version, isn't it?

share|improve this question
up vote 1 down vote accepted

The z-index CSS property, which introduced the 'z-axis' and the ability to stack elements, was introduced with CSS2.

CSS2 was published by the W3C as a Recommendation in May 1998. So you're right -- it wasn't always possible, but it's been around for a while!

share|improve this answer
I remember learning HTML on about 1999/1998... since the books weren't updated the design was inside.. <font color="red" size="4"> text </font> – Asaf May 4 '11 at 8:20

Layers were first possible in Netscape 3 using the <layer> tag. This tag was proprietary to Netscape and was not supported by Internet Explorer. Support for it was abandoned in Netscape 6.

IE 4 used <div> tags and the z-index CSS property to create layers. That has since become standard.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.