Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #637044

    Hi @ enfold,
    i have customized the image lightbox so that the images have an white border.

    img.mfp-img {
    border: 10px solid white;
    padding: 0px;
    margin-top: 40px;
    }

    Looks great, but because of the margin-top the image does not fit to the screen anymore, the bottom is cropped.
    Any idea?

    Best Regards
    Sigmund

    #637558

    Hey Sigmund,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    img.mfp-img {
        max-width: 90%;
    }
    

    Best regards,
    Yigit

    #637647

    Great, works like charm.
    Is it possible to align the caption below the lighbox image so that it fits with the corner of the image like usual?

    Best Regards,
    Sigmund

    • This reply was modified 8 years, 7 months ago by Sigmund.
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Image Lightbox Size when image have a border’ is closed to new replies.