PDA

View Full Version : Lightbox Image Viewer (max width issues?)



asdfjklmichael
12-06-2014, 08:50 PM
1) Script Title: Lightbox image viewer

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/lightbox/index.htm

3) Describe problem: I was attempting to use the script to load some images upon mouseclicking the image thumbnails. Some of the the full-sized images being linked to are much wider than my browser window (greater than a width of 1000px). I tried using the "max-width" attribute in CSS, but for some reason, the DIV containing the image never seems to shrink down.

To put it simply, I can use "max-width" to make the image that pops up smaller, but the DIV that contains the image will retain its size as if the image was never shrunken down. I'm not sure how to go about resolving this issue.

jscheuer1
12-07-2014, 03:47 AM
This is a pretty old script. To get a feature like that, you need something a little more modern like:

http://fancybox.net

which is still a bit on the old side - but at least it has the feature you're asking for. And it's a default.