Create Popup Image Viewer Using CSS in Blogger

To setup popup Image viewer in your blog First of all copy the following CSS Code and paste it between <head> and </head> Tags of your Template.

<style type=”text/css”>

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

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

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: #ffffff;
padding: 5px;
left: -1000px;
border: 1px solid #000;
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: 263px;
left:282px; /*position where enlarged image should offset horizontally */

}

</style>

Second step is to paste the following Code into your blog Posts.

<a class=”thumbnail” href=”#”>
<img src=”http://www.t2tibet.com/Images/mount-everest.jpg”
border=”0″ height=”66″ width=”100″ /><span>
<img src=”http://www.t2tibet.com/Images/mount-everest.jpg” /></span></a>

Replace the Image Url above with your image Url and see your work done.

Category: Uncategorized

Written by: ikogsakanding [ 1504 Posts ] (Author Profile)
blogs about latest trends, the internet, the tech news and the local blogosphere. You can follow me via Twitter and Facebook .
Posted on: Tuesday, March 24th, 2009 at 9:08 pm with 1 Comment.

Comments (1)

Trackback URL | Comments RSS Feed

  1. 報紙廣告 says:

    I love your blog post.. excellent shades & concept. Does a person style this web site yourself or have a person hire an attorney to make it work available for you? Plz respond seeing that I!|m looking to style by myself website as well as would want to realize wherever you received this via. many thanks

Leave a Reply