• Xenics

    (@xenics)


    Hy,
    tone of the rarest Plugins which also set a lightbox to a single <a href> image Link, Thank You ??

    How can i set the max-height to the lightbox?
    I often got some flyers and they have a 3:4 ratio not like every simple 4:3 ratio or something like that, but the scrollbar is insane ugly and i want to set the lightbox restriction to their “height” value.

    i’ve tried something like this, but it didn’t work:

    .vbox-container { max-width: 80% !important;	margin: auto;
    }
    .vbox-overlay, vbox-container img {max-height: 80%; width: auto; margin: auto; }
    .vbox-container img {max-height: 80% !important; width: auto; }
    .vbox-content img {max-height: 80% !important;	width: auto;
    }
    body > div.vbox-overlay > div.vbox-container > div img {
    	max-height: 80% !important;
    	width: auto;
    }

    And i want a fullscreen Lightbox, only something like 80% of the Userscreen and in their middle, and modify the title, some snippets please ??

    Regards ??

    • This topic was modified 7 years ago by Xenics.
  • The topic ‘How to set restriction to Image height not width’ is closed to new replies.