I am facing a problem with the vertical offset of the enlarged images in
http://komni.de/test/info.php?id=11#thumb
If the scroll bar is at the very top, onmouseover does what I want it to do i.e: overlap the default big sized picture.
When I scroll down, the vertical offset's postion is still fixed but the overlapping with the default big sized picture is lost because of the scroll bar.
A solution would be to split the .thumbnail:hover span into two parts, one that has a fixed position for the left: property and one that has a relative position for the top: property. But I am not sure this is feasible.
Any suggestions or alternatives will be greatly appreciated.
The css code is the following:
.thumbnail{
position: relative;
}
.thumbnail:hover{
background-color: transparent;
z-index: 50;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
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*/
position: fixed;
visibility: visible;
top: 120px;
left: 550px; /*position where enlarged image should offset horizontally */
}
Thanks



Reply With Quote


Bookmarks