Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a Lightbox type js plugin that would take into account the browser window size and resize the currently displayed photo so it fits - like the jquery-imagefit plugin does.

share|improve this question
up vote 4 down vote accepted

This is a fairly standard feature, at least among the well-known options. (To the point that they generally don't bother making too much mention of it.) It doesn't seem like it'd be hard to find one unless you're looking for something more. Anyway:

  • Shadowbox, with the handleOversize argument
  • fancyBox, with the fitToView argument
  • Colorbox takes a different approach with its scalePhotos argument.

(BTW: The demos for the scripts above don't load huge images into the overlays, so to see the effect, reduce your browser window to 800x600 or something.)

share|improve this answer
To the point that they generally don't bother making too much mention of it. Thank you, now it makes sense why googling didn't help at all :) – pax Nov 30 '11 at 0:04

There is a WordPress plugin that handles this named FooBox. It can be found at http://getfoobox.com

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.