threeyzmonkeys
05-27-2006, 10:02 AM
http://www.dynamicdrive.com/style/csslibrary/item/css-popup-image-viewer
Can anybody help me with this. I think I'm slowly going insane.:confused: I have made the script work, finally, but I can't solve this. I have a line of about 40 tiny images. I need to have the left 20 popups appear to the right of the image and the right 20 to the left. I also can't stop a gap of about 2px appearing between each thumbnail.
This is the script I'm using:
<!-- Source: Dynamic Drive CSS Library -->
<!-- URL: http://www.dynamicdrive.com/style/ -->
<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: transparent;
padding: 0px;
left: 200-px;
border: 0;
visibility: hidden;
color: white;
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>
<a class="thumbnail" href="#thumb1"><img src="img1.jpg" width="20px" height="20px" border="0" /><span><img src="img1.jpg" /><br />text</span></a>
<a class="thumbnail" href="#thumb2"><img src="img2.jpg" width="20px" height="20px" border="0" /><span><img src="img2.jpg" /><br />text</span></a>
<br />
<br />
If anyone has any ideas I would be grateful.
Can anybody help me with this. I think I'm slowly going insane.:confused: I have made the script work, finally, but I can't solve this. I have a line of about 40 tiny images. I need to have the left 20 popups appear to the right of the image and the right 20 to the left. I also can't stop a gap of about 2px appearing between each thumbnail.
This is the script I'm using:
<!-- Source: Dynamic Drive CSS Library -->
<!-- URL: http://www.dynamicdrive.com/style/ -->
<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: transparent;
padding: 0px;
left: 200-px;
border: 0;
visibility: hidden;
color: white;
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>
<a class="thumbnail" href="#thumb1"><img src="img1.jpg" width="20px" height="20px" border="0" /><span><img src="img1.jpg" /><br />text</span></a>
<a class="thumbnail" href="#thumb2"><img src="img2.jpg" width="20px" height="20px" border="0" /><span><img src="img2.jpg" /><br />text</span></a>
<br />
<br />
If anyone has any ideas I would be grateful.