View Full Version : how to specify width & height of the image in light box image viewer
charlespp
12-09-2008, 09:07 AM
1) Script Title: LIght box image viewer
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm
3) Describe problem:How to specify the image width and height ,so that if the image is bigger one,it can display in fixed width and height what we have given.
Thanks in Advance....
jscheuer1
12-09-2008, 11:33 AM
If you are going to specify the width and height anyway, why not just resize the image in an image editing program? It will load faster, and there are other benefits to doing it that way.
However, if you were to specify dimensions or even resize the image as suggested, how would you know that they are correct for a given user's screen/window.
If that type of thing is an issue, use LightWindow:
http://www.stickmanlabs.com/lightwindow/
Which can be set to automatically adjust the size of the image to fit in the user's browser.
charlespp
12-09-2008, 11:57 AM
hi,
But we giving user to upload images in any sizes.So on clicking each images which is uploaded by user, we want to give him light box to view images.And display as fixed width image.weather he has uploaded big/medium images.
So can we set fixed image width/height for the litebox view.
charlespp
12-10-2008, 05:05 AM
Can anyone tell me about to fix width & height of the image in light box......
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.