thepazza
09-12-2007, 03:08 PM
hi,
i've used a bit of dynamicdrive javascript code on my website, cant remember which one exactly, its a mouseover popup code.
it works fine in IE, but in the latest version of firefox the positioning of the popup is out of place and the scroll bar from a frame is visible through the pop up. i'm not too bothered about the positioning for now, but the the visible scroll bar is a big problem.
My code is:
<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: #ffffff;
padding: 4px;
left: -1000px;
border: 1px solid black;
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: -180px;
left: -370px; /*position where enlarged image should offset horizontally */
}
</style>
Any ideas?
i've used a bit of dynamicdrive javascript code on my website, cant remember which one exactly, its a mouseover popup code.
it works fine in IE, but in the latest version of firefox the positioning of the popup is out of place and the scroll bar from a frame is visible through the pop up. i'm not too bothered about the positioning for now, but the the visible scroll bar is a big problem.
My code is:
<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: #ffffff;
padding: 4px;
left: -1000px;
border: 1px solid black;
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: -180px;
left: -370px; /*position where enlarged image should offset horizontally */
}
</style>
Any ideas?