You may find when using CSS positioning that, on occasion, you may end up with layers that overlap. sometime this can be a required element to the design of your layout. But what if you want the first or second layer to be top, not the last one you've positioned? This is when the z-index property comes into play.
Think of each positioned layer of you design as pieces of paper. You can lay them one on top of the other in whatever order you like... using the z-index of course. The higher the z-index the closer to the top of the "paper pile" it is going to be. you can even use negative numbers to get the positioned element right down to the bottom. Cool huh?
Right, quite simply you will need to have some css positioned elements. These will HAVE to have the position attribute set. The z-index will work with either relative or absolute positioned elements. For example:
#container {
position:absolute;
width:100px;
height:100px;
z-index:-1;
}
This container will position itelf below the previous element. Use a positive number and the element will be above.
Easy Peasy!