Lightbox Plus Colorbox
[Plugin: Lightbox Plus] Browser Resize & Mobile orientation change (2 posts)

  1. janubande007
    Posted 2 years ago #


    I'm wondering why the lightbox does not auto-change its size when the browser is resized or on a mobile phone the orientation changes (portrait to landscape & vice versa).

    PS...if the slideshow is playing, the next picture (not current one) to be loaded does resize appropriately, however, I may not always want to enable autoplay or have a slide show play.

    Can this be fixed?



  2. eli0086
    Posted 2 years ago #

    I don't know if you were able to find a better solution yet, but I added to the css (I'm using the "shadowed" version).
    Go into colorbox.css and add a conditional statement for your differing screen sizes for the content being loaded.
    See the following:

    @media screen and (max-width: 400px) {

    #cboxLoadedContent {


    It doesn't allow it to go full screen or anything, but it helps the photo from being so huge in mobile window. It's a start until a better solution is found. Hope it at least helps a little.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Lightbox Plus Colorbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic