|
-
Zoom image upwards
Dear all,
On our company intranet, I use a zoom image function to display some projectpicture when hovering over the image
code I use is:
<html>
<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: 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*/
visibility: visible;
top: 0;
left: 100px; /*position where enlarged image should offset horizontally */
}
</style>
<a class="thumbnail" href="#thumb"><img src="someurl.image.JPG" width="200px" height="132px" border="0" /><span><img src="someurl.image.JPG" /><br />image name.</span></a>
<br />
<br />
</html>
This code makes the image zoom from the left uppercorner downwards.
I would like to make the image zoom upwards.
Can I make that happen that the image zooms upwards rathe than downwards (measured from the left upper corner.
Thank you !
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks