CSS tutorials
In this tutorial I will explain how to use background images with a different tags to place them one on top of the other using absolute positioning and z-index.
Demo is available here.
Images used in this tutorial:

First create a simple structure like for instance:
Now just apply styling to it::
In this example we are using wrapper with relative position and h1 and h2 tags which will display our images in the background. h1 and h2 tags have absolute position, text-indent of -999999px (this is to get read of the text inside of the tags) hidden overflow and block display. These are main elements which make the whole magic.
Using z-index you can control wether first or second image is display on top of the other.
Sorry for images but I've made them very quickly for demonstrating purposes.
I hope you'll find it useful.
Website Design Company | Website Design Company Sussex | Website Design Company Chichester | Website Design Packages | Tutorials Resources | Articles | Contact
© Web Design Tutorials – Sebastian Sulinski