Advanced Search Usage Terms Submit Contact
Dynamic Drive CSS Library
 
CSS Library
Submit an original CSS code
CSS Layouts
Web Graphics
Online Tools:

Advertise Here

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:

The HTML:

Code Info

Rate this code:

Date Posted: 05/07/2006

Revision History: None

Usage Terms: Click here

Your Comments (524)

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 42 of 53 pages « First  <  40 41 42 43 44 >  Last »

This is really cool, a animation in loading can make it more attractive, additionally a drag option will make this perfect for me. Thanks guys ;)
Posted by Sunny on 09/29, 12:01 PM
WOW - the implementation worked on the first attempt, this little bit of code is golden! thank you, 1000 times, thank you
Posted by Lisa on 10/03, 07:16 PM
Three questions:
1) How would you edit the styles if you wanted the enlarged picture to appear to the left of the image?
2) Is it possible to edit it so that the enlarged image will disappear as soon as you move off the thumbnail. Right now, the large image stays on the screen as long as the mouse is on the thumbnail or anywhere on the large image.
3) Is there a way to make your webpage length expand if the large image drops below the page? Currently, if one of the expanded images goes below the current length, it just runs off the page. It would be nice if the page length could lengthen when the image is there, and shrink when it is not.
Posted by John on 10/21, 06:37 PM
Hi,
I am building a not for profit animal conservation website, and I would like to use thumbnail images on
My site, but I don’t know how to use the codes on your site. I have tried pasting the codes on your site in the html editor on my website but it does not work.
1.Where do I insert my images in the codes?
2.How do I insert the images into the codes?
3.Where do I insert my text or info in the codes?
4.How do I upload the codes to make them work when the website is published?
Please reply the soonest, I would appreciate it greatly,

Sincerely,

Chukwu.
Posted by CHUKWU MEKOOS on 10/22, 04:01 AM
it's good but in Opera enlage image fly away from the pointer, can anyone help?
Posted by BoBka_altRUist on 10/24, 01:00 AM
wow! it's work correctly in Opera & FF & IE
when you insert in all elements in css
display:block;
Posted by BoBka_altRUist on 10/24, 01:22 AM
This works great! Thanks a ton!!!
Posted by Steve on 10/31, 07:21 AM
works great!

Would it be possible to embed a link into the popup under the image? Or make the entire popup box a link?
Posted by andy on 10/31, 02:09 PM
This is cool, thank you so much for introducing this stuff. You code lets me understand the process step-by-step.

Thanks again!
Posted by Chris on 10/31, 09:26 PM
How do you edit existing css to match with this css file? Can I added in the external file so I don't mess around with my existing one?

Thanks
Posted by tony kindmail on 11/02, 09:08 PM

Comment Pages 42 of 53 pages « First  <  40 41 42 43 44 >  Last »

Commenting is not available in this weblog entry.
Copyright 2006-2008 Dynamic Drive Read our Usage Terms before using any of the CSS codes.
Dynamic Drive DHTML and CSS Code Library