Lightbox image dimensions - by lilleliis

This topic has 4 replies, 2 voices, and was last updated 8 years, 11 months ago ago by Eva Kemp

  • Avatar: lilleliis
    lilleliis
    Participant
    April 9, 2015 at 20:06

    I would like the images to open in lightbox in full size. At the moment they appear a little smaller than the photos I insert. Which settings should I change?

    Thank you.

    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    April 10, 2015 at 08:46

    Hello,

    You can try to add this code in custom.css file:

    img.mfp-img {
        width: 1000px !important;
        max-width: 100% !important;
    }

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: lilleliis
    lilleliis
    Participant
    April 12, 2015 at 11:01

    I´ve added the code.
    However, 1000px was way too big so I changed it to 800.
    The code works perfectly with landscape images, but it compresses portrait photos. Please see the screenshots in the private content.

    Which code should I use so that both images types look good in lightbox?
    Thanks in advance.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    April 13, 2015 at 17:20

    Hello,

    In this case your images should have such original dimensions 1425px × 1900px.
    Sorry, but as now your images are small in sizes, they won’t be shown properly in lightbox for full width.

    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.