I have a css that when i put my mouse over the image it displays the image bigger. the issue is that i have alot of images and when i scroll down the page the larger image displays on top and i cant see it.
I want to position the larger image popup in a way that it will always be in the same place on the page reglardless of how much i scroll down.
.thumbnail{
position: relative;
z-index: 0;
}
.thumbnail:hover{
background-color: transparent;
z-index: 50;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
padding: 5px;
left: -1000px;
visibility: hidden;
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: 300px;
left: 60px;
}