NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>Z-index Example</title>
<style type="text/css">
<!--
div.S1 {position: absolute;
 top: 20px; left: 20px;
 height: 50px; width: 50px;
 color: white;
 background-color: blue;
 z-index: 2;}
div.S2 {position: absolute;
 top: 30px; left: 30px;
 height: 25px; width: 100px;
 background-color: #FFA500;
 z-index: 1;}
div.S3 {position: absolute;
 top: 40px; left: 40px;
 height: 25px; width: 25px;
 background-color: yellow;
 z-index: 3;}
-->
</style>
</head>
<body>

<div class="S1">This is section one.</div>
<div class="S2">This is section two.</div>
<div class="S3">This is section three.</div>

</body>
</html>


CLOSE WINDOW | VIEW RENDERED PAGE