z-index
property and its problemsdiv
z-index: 1;
z-index: 2;
div
z-index: 3;
z-index: 1;
div
z-index: 4;
z-index: 2;
So.. Internet Explorer is creating like 3 piles (because of the outer 3 positioned div
elements). Inside these piles IE is calculating 3 different z-index
'ranges' (or stacking contexts according to the specification). Firefox, Mozilla, Opera, Safari and Konquerer all act the same, throwing all z-index
numbers on one huge pile. IE is wrong.
z-index: 0;
to the outer div
elementsThis makes Moz, Opera, Safari and Konquerer behave like IE.
z-index: auto;
to the outer div
elementsI don't know how to let IE render the piles the same way Moz/Opera does. Would be handy if you could toggle between both modes. At least for Opera and Mozilla you can. Yay :)
Frixon used my example to write some more text.