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 25 of 53 pages « First < 23 24 25 26 27 > Last »
FYI, for anyone who validates via W3jigsaw (with its background/foreground pickiness) and who have set up a CSS A { BACKGROUND-COLOR: TRANSPARENT; COLOR #00C; } ...or some such ... it'll break this code in IE6!!!
(I just figured this out after a long day of grumbling...)
Where can I find instructions on setting up basic CSS pages? Thanks in advance.
Mervin
mervinj@protocol1099.com
.thumbnail:hover{
background-color: transparent;
z-index: 50;
direction:ltr;
}
Comment Pages 25 of 53 pages « First < 23 24 25 26 27 > Last »
Commenting is not available in this weblog entry.




The original div --> #fifteen { width: 124px; height: 72px; position: absolute; top: 150px; left: 501px; }
Position for the popup span --> #fifteen span { position: absolute; left: -40px; top: 75px; z-index: 0; }
Modified code from above:
.thumbnail:hover{ background-color: transparent; z-index: 50; }
.thumbnail span { visibility: hidden; }
.thumbnail:hover span { visibility: visible; }
Works on all Windows Browsers (haven't checked other os's yet).
You can see it applied here: http://www.dreesredhothomes.com/redhot.php
Obviously this is not exactly what the script was intended to do, but I thought it might be helpful to others who are trying to do similar things to what I had to accomplish here.
Another side note I find important: positioning the span in the hidden state where you want it to be when it pops up gets rid of annoying scrollbars that scroll to hold all the invisible images.