CSS Library: Image CSS: Here
CSS Popup Image Viewer
Author: Dynamic Drive
Enable arbitrary links or image thumbnails to pop up an enlarged (different) image onMouseover by using this CSS code. With the help of CSS's ":hover" pseudo class, combined with relative and absolute positioning, the enlarged images are simply included on the page as normal HTML, "popping" up on demand. CSS is behaving more and more like scripting!
Demo:
One of my favorite foods is sushi
Doesn't this look good?, and it's good for you too! Coffee and sushi probably don't mix well, but I like some Zoka Coffee
Zoka Coffee to boot! Here are some thumbnails from my trip to La la land:
![]()

Simply beautiful.
![]()

So real, it's unreal. Or is it?
The CSS:
Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.
Comment Pages 39 of 44 pages « First < 37 38 39 40 41 > Last »
please try it:
<a class="thumbnail" href="#thumb">media/dynamicdrive.gif<span>media/zoka.gif
Simply beautiful.</span></a>
<select><option>湖南<//option><option>北京<//option></select>
<a class="thumbnail" href="#thumb">media/ocean_thumb.jpg<span>media/ocean.jpg
So real, it's unreal. Or is it?</span></a>
The paragraph is on a page that is within an iframe that is within a div tag.
I could change
.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
left: 60px; /*position where enlarged image should offset horizontally */
to
.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
left: -400px; /*position where enlarged image should offset horizontally */
But, If any future links are on the left of a paragraph, they will get cut off on the left.
I need help fixing this to make the popup stay inside the iframe.
I found a solution....
I made a 2nd style named thumbnailr.
Make one offset 60 and the other -400.. I can just use the style needed depending if the text is left or right
The User need to scroll the see the image.
I need to put the image in one prescribed position of the screen so that the user need not to scroll the screen to see the image.
Any solution for these?
On MOuseOVer when the image Pop's Up, the quality of the image is very poor. Does anyone have any solution for this
Comment Pages 39 of 44 pages « First < 37 38 39 40 41 > Last »









I placed notes by each attribute I manipulated in the css: