Dec
07
2008
Popup image viewer PDF Print E-mail
pre.jpgHariesDesign.com - This CSS from from DynamicDrive.com. Just simple end easy to use. Hover the thumb images and you'll see real size of your image. See Demo
 
Follow this step
CSS

<Style type="text/css">

/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */

.thumbnail{
position: relative;
z-index: 0;
}

.thumbnail:hover{
background-color: transparent;
z-index: 50;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}

.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
left: 60px; /*position where enlarged image should offset horizontally */

}

</style>

 

HTML

<a class="thumbnail" href="http://www.hariesdesign.com/new/#thumb"><img src="images/_thb_spider2.jpg" width="90px" height="60px" border="0" /><span><img src="images/spider2.jpg" /><br />Photography by HariesDesign.com</span></a>

<a class="thumbnail" href="http://www.hariesdesign.com/new/#thumb"><img src="images/_thb_waterfall.jpg" width="90px" height="60px" border="0" /><span><img src="images/waterfall.jpg" /><br />Photography by HariesDesign.com</span></a>

<br /><br />
<a class="thumbnail" href="http://www.hariesdesign.com/new/#thumb">Text Link sample<span><img src="images/flowers.jpg" /><br />Photography by HariesDesign.com</span></a>

 

 
Next >

Gallery Photography

Login

Sponsors


Get Chitika Premium