VaporGlide
04-16-2008, 03:56 PM
Hi,
I was able to make the CSS Popup Image Viewer shown here (http://www.dynamicdrive.com/style/csslibrary/item/css-popup-image-viewer/) work as a pop down, but when I changed the .thumbnail:hover span top attribute to -400 instead of -1000 I'm getting different results in Firefox and IE7. Any ideas how to make them render approximately the same? IE is rendering a couple of hundred pixels higher than firefox.
Here are the changes I made in the stylesheet:
<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: #333333;
padding: 0px;
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: -400px;
left: 0px; /*position where enlarged image should offset horizontally */
}
</style>
TIA
Jeff
I was able to make the CSS Popup Image Viewer shown here (http://www.dynamicdrive.com/style/csslibrary/item/css-popup-image-viewer/) work as a pop down, but when I changed the .thumbnail:hover span top attribute to -400 instead of -1000 I'm getting different results in Firefox and IE7. Any ideas how to make them render approximately the same? IE is rendering a couple of hundred pixels higher than firefox.
Here are the changes I made in the stylesheet:
<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: #333333;
padding: 0px;
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: -400px;
left: 0px; /*position where enlarged image should offset horizontally */
}
</style>
TIA
Jeff