Zoom using css

<li><img src=”five.png” width=”150px” height=”100px” alt=”Blackpool pier” /><span><img src=”assets/image-enlarge03.jpg” alt=”Blackpool pier” /><br />Rolling waves off Blackpool North Pier</span></li>
list-style-type:none; /*remove the bullet point*/
ul.enlarge li{
display:inline-block; /*places the images in a line*/
position: relative;
z-index: 0; /*resets the stack order of the list items – later we’ll increase this*/
margin:10px 40px 0 20px;
ul.enlarge img{
padding: 6px;
-webkit-box-shadow: 0 0 6px rgba(132, 132, 132, .75);
-moz-box-shadow: 0 0 6px rgba(132, 132, 132, .75);
box-shadow: 0 0 6px rgba(132, 132, 132, .75);
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
ul.enlarge span{
left: -9999px;
padding: 10px;
font-family: ‘Droid Sans’, sans-serif;
text-align: center;
color: #495a62;
-webkit-box-shadow: 0 0 20px rgba(0,0,0, .75));
-moz-box-shadow: 0 0 20px rgba(0,0,0, .75);
box-shadow: 0 0 20px rgba(0,0,0, .75);
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
ul.enlarge li:hover{
z-index: 50;
ul.enlarge span img{
ul.enlarge li:hover span{
top: -300px; /*the distance from the bottom of the thumbnail to the top of the popup image*/
left: -20px; /*distance from the left of the thumbnail to the left of the popup image*/
ul.enlarge li:hover:nth-child(2) span{
left: -100px;
ul.enlarge li:hover:nth-child(3) span{
left: -200px;
/**IE Hacks – see http://css3pie.com/ for more info on how to use CS3Pie and to download the latest version**/
ul.enlarge img, ul.enlarge span{
behavior: url(pie/PIE.htc);


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s