Jump to content

Show fullsize image in <div> over page


njdirt

Recommended Posts

Hello,

  So I'm trying to make it so that on my site, when a user clicks a particular image, a semi-transparent <div> shows up covering 100% of the site and the larger image is shown centered on top of this.  I know there must be a popular code out there to do this as I've seen it many times.  Unfortunately, I can't remember any sites I've seen it on...  if you have seen this, could you please post a link to a site that uses it?  Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/194706-show-fullsize-image-in-over-page/
Share on other sites

There is nothing that uses only CSS, but it can be done with javascript (and a combination of CSS). Anyways, here is a very comprehensive list of different scripts that can do what you want (its called a lightbox by the way): http://planetozh.com/projects/lightbox-clones/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.