Lightbox Plus Colorbox
Resize Image To Fit User's Screen (2 posts)

  1. jbayout
    Posted 2 years ago #

    Hi. My images are usually 1024x1024 pixels (with small 150px thumbnails of course). When the lightbox appears, can the image automatically scale to the user's screen, so that if the user has a screen that's, say, only 800px tall, the image will fit?

    How can I do this? Thanks!


  2. chibichiii
    Posted 2 years ago #

    Hey JB,

    I had the same issue, it's actually quite easy to fix in the Lightbox Plus Colorbox settings Primary Lightbox settings go to the Tab Size, you will find nearly at the bottom the text boxes Maximum Width and Maximum height. If you put 100% in the Maximum width the image will be scaled down to the max of your resolution can handle.

    It will do this for all your visitors as well, so that should fix your problem. Hope this helps!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic