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 47 of 53 pages « First < 45 46 47 48 49 > Last »
<a class="thumbnail" href="#thumb">Kenneth Evans<span>../Images/Kenneth Guy Evans.bmp
Kenneth Guy
Evans</span></a>
The href="#thumb" turns the text into a link but I'm not sure what the #thumb is exactly.
.thumbnail{
position: relative;
z-index: 0;}
Then the linked text stays fixed on the page as I scroll the text and the links appear in the blank part of the page. If I change it to position:static then the links scroll with the text but I am still left with the blank bit of page.
Any suggestions?
Thanks
Jen
Thanks
when i hover that pic it not show full span
i have solve this bug by utting z-index in span and img
.thumbnail span img{ /*CSS for enlarged image*/
z-index:100; /* Z Index for makeing image in top */
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{ /*CSS for enlarged image on hover*/
z-index:100; /* Z Index for makeing image in top */
visibility: visible;
top: 0;
left: 60px; /*position where enlarged image should offset horizontally */
}
This is my first attempt at CSS, so some simple instructions would be great.
Thanks,
Michael
So how to set the image to BOTTOM RIGHT, with a POPUP IMAGE that hovers to the left of the bottom right.
Would like to see if this is possible with CSS
Comment Pages 47 of 53 pages « First < 45 46 47 48 49 > Last »
Commenting is not available in this weblog entry.







This is great script and does just what I want, but it seems to enlarge the size of my page vertically and I end up with a huge empty space at the bottom of my pages with these mouseover links on.
I have tried replacing visibility:hidden with display:none and I get no images appearing on mouseover. Replacing it with display:inline just creates the same problem.