Koodi

Tämä koodipätkä sijoitetaan <head> ja </head> sisälle.

.e1 { width:100px; height:100px; 
background:red; position:absolute; 
left:20px; margin-top:30px; z-index:-2;}

.e2 { width:100px; height:100px; 
background:blue; position:absolute; 
margin-top:45px; z-index:-4;}

.e3 { width:90px; height:100px; 
background:orange; position:absolute; 
left:50px; z-index:-3;}

.e4 { width:100px; height:100px; 
background:black; position:absolute; 
left:60px; margin-top:40px; z-index:-5;}

Vaikutus

taso e1
taso e2
taso e3
taso e4