Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do picture overlay in HTML (something like marker on top of google map)?

Anyone know how to do picture overlay or appear on top of each other in HTML? The effect will be something like the marker/icon appear on Google Map where the user can specify the coordinate of the second picture appear on the first picture.

Thanks.

like image 252
smalldream Avatar asked Sep 19 '08 08:09

smalldream


2 Answers

You can use <div> containers to seperate content into multiple layers. Therefore the div containers have to be positioned absolutely and marked with a z-index. for instance:

<div style="position: absolute; z-index:100">This is in background</div> 
<div style="position: absolute; z-index:5000">This is in foreground</div> 

Of course the content also can contains images, etc.

like image 76
Johannes Hädrich Avatar answered Oct 19 '22 19:10

Johannes Hädrich


Use a DIV tag and CSS absolute positioning, with the z-index property.

http://www.w3.org/TR/CSS2/visuren.html

like image 42
Subimage Avatar answered Oct 19 '22 21:10

Subimage