Jump to content

Show fullsize image in <div> over page


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/

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.