CSS Library: Image CSS: Here
CSS Popup Image Viewer
Author: Dynamic Drive
Enable arbitrary links or image thumbnails to pop up an enlarged (different) image onMouseover by using this CSS code. With the help of CSS's ":hover" pseudo class, combined with relative and absolute positioning, the enlarged images are simply included on the page as normal HTML, "popping" up on demand. CSS is behaving more and more like scripting!
Demo:
One of my favorite foods is sushi
Doesn't this look good?, and it's good for you too! Coffee and sushi probably don't mix well, but I like some Zoka Coffee
Zoka Coffee to boot! Here are some thumbnails from my trip to La la land:
![]()

Simply beautiful.
![]()

So real, it's unreal. Or is it?
The CSS:
Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.
Comment Pages 14 of 46 pages « First < 12 13 14 15 16 > Last »
<HEAD>
<!--[if IE]>
<style type="text/css">
.thumbnail:hover span{ /*CSS for enlarged image*/
position:absolute;
</style>
<![endif]-->
<style type="text/css">
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
#galleryimage {
position: relative;
z-index:0;
}
.thumbnail {
display:block;
font-family: Arial, Helvetica, sans-serif;
font-size: 13.5px;
color: #333333;
text-decoration: none;
}
.thumbnail:hover{
position:relative;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background: #ff8b34;
padding:5px;
left: -1000px;
border: 1px dashed #666666;
display:none;
color: #666666;
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-size: 8.5pt;
font-style: normal;
font-weight: normal;
}
.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding:2px;
}
.thumbnail:hover span{ /*CSS for enlarged image on hover*/
display:block;
top:20px;
z-index: 50;
left: 10px;
}
</style>
</HEAD>
I have problem to code the mapping to show a different popup message over each map area.
I coded only one area for the time beeng, I will code the other area when this one will be working.
The problem is that the popup shoes when I go over the entire image instead of the map area.
Here is my html code :
<a class="thumbnail">images/carte_terrains.gif
<map name="terrain" id="terrain">
<area shape ="poly" coords="199,89,226,103,249,70,215,64" href="#" alt="terrain_55" ></map>
<span>Superficie 25000 pi2</span></a>
Thanks for helping me.
When rolling over the thumbnail the larger images shows as planned, however, it is behind everything else on the page.
If i'm correct in saying, this is to do with the z-index? but i dont know anything about z-index's, how they work etc..
do you have to give everything that the larger thumbnail appears behind, a smaller z-index than the larger image has.
you link to a CSS in the HEAD of the page
<style type=text/css>@import url( zoka.css );</STYLE>
if you want to check it in opera heres an example
http://www.karting101.com/glossary.htm
I try it at: SEO Guru Pakistan @ www.junaid.biz
It work fine...thanks
Comment Pages 14 of 46 pages « First < 12 13 14 15 16 > Last »








