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

kk so, im looking for somthing like this. But when the image is clicked it will open in the same window, but look like a popout to the user. And the background will be opaqe. AND make a loder tell the image downloads. Ohh and a close button xD
Posted by Brandon on 08/12, 12:31 PM
This CSS crashes IE7 but works fine in Firefox, I can't work out what is casuing the problem? shtml.dll is faulting on reading the HTML.

Anybody have any idea why..?
Posted by Darren on 08/15, 07:30 AM
it really works in page editor, but doesn't work in browser after uploading, it also showing picture with in the table which means the zoomed picture is showing half only can anyone help please...
Posted by mandeep on 08/17, 12:41 AM
to validate doc I began page with:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
and each image needs to have an alternate name within the image tag
alt="picture of such and such"

for those really new to CSS
CSS source code goes just before the HEAD close and must be within <style type="text/css"> and </style> or you must reference an external style sheet.
Posted by jonna on 08/17, 07:12 AM
I'm having an issue with the AOL browser The URL is: http://www.360cash.com/profit_websites.html

This works like a charm in IE and Firefox. In AOL, the images are displaying directly under the thumbnails. I'm using a row in a table for the thumbnails. Any help working around this would be greatly appreciated. Thanks.
Posted by Sherryl on 08/18, 07:55 AM
can you send to my email, what i required...?
this is talk about friendster...

how to make the xhtml code for,
when someone view our friendster, there is emerge image primary foto in their friendster...?

thanks.
sefda
Posted by sefda on 08/23, 09:05 AM
Great code. I found this very useful on one of my sites.
Posted by counter strike maps on 08/26, 11:04 AM
Hi
Is there a way of rolling over an image to display a large block of text?
Posted by Ben on 08/27, 07:08 PM
Hi All, I'm experincing a problem with IE regarding this script. First is in IE it loads very slowly but not in firefox. Also in IE6 the enlarged image doesn't show at all. But IE7 it does. You can see it in the url I mentioned.
Posted by Andarege Livera on 08/29, 09:36 AM
For large image to show in IE6 you must keep href="#thumb" intact. I've had the same problem. This also renders differently in IE6 than in IE7 & FF2 or FF3. I'm still tweeking mine.
jlyweb.com/Porter2.html is IE7, FF2 & FF3 compatable, but fails in IE6
jlyweb.com/Porter3.html is tweeked for IE6, but looks funky on IE7, FF2 & FF3 (all the browers I've got available to me)
Posted by jonna on 08/29, 12:21 PM

Comment Pages 40 of 53 pages « First  <  38 39 40 41 42 >  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