CSS Image Layers
-
First time posting long time reader.
Wondered if anyone can help me out with the following issue I’m having.
I’m trying to use CSS Layers to build up a picture (in order to allow each of the portrait png’s to seperately clickable to link to other pages).
I’ve set up a custom.css containing the following:
.Layer-1 { position: relative; left: +0px; top: +0px; width: 1500px; height: 900px; z-index: 1; } .Layer-2 { position: relative; left: 36px; top: 23px; width: 236px; height: 355px; z-index: 2; } .Layer-3 { position: relative; left: 314px; top: 23px; width: 284px; height: 355px; z-index: 3; } .Layer-4 { position: relative; left: 636px; top: 23px; width: 284px; height: 355px; z-index: 4; } .Layer-5 { position: relative; left: 951px; top: 23px; width: 236px; height: 355px; z-index: 5; }
I’ve then copied the standard full width template and added the following piece of code (so I only affect a single page, the one calling the copied .php):
<div class="layer1"> <img src="https://www.klones.co.uk/wp-content/uploads/2013/07/Layer-1.png"> <div class="layer2"> <img src="https://www.klones.co.uk/wp-content/uploads/2013/07/Layer-2.png"> <div class="layer3"> <img src="https://www.klones.co.uk/wp-content/uploads/2013/07/Layer-3.png"> <div class="layer4"> <img src="https://www.klones.co.uk/wp-content/uploads/2013/07/Layer-4.png"> <div class="layer5"> <img src="https://www.klones.co.uk/wp-content/uploads/2013/07/Layer-5.png"> </div> </div> </div> </div> </div>
My expectation given everything I’ve read over the past two hours trying to work this out would have led me to believe I would end up with something like:
https://www.klones.co.uk/wp-content/uploads/2013/07/Layer-0.png
But what I’m actually seeing is this:
https://www.klones.co.uk/sandbox/
I’d appreciate any help anyone can give.
Thanks for looking.
- The topic ‘CSS Image Layers’ is closed to new replies.