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?

link|improve this question
feedback

2 Answers

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!

link|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
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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