mreq / slick-lightbox

A lightbox wrapper for Ken's amazing slick carousel.
http://mreq.github.io/slick-lightbox/
MIT License
229 stars 103 forks source link

How to reduce margins in lightbox view? #33

Closed jtlocsei closed 7 years ago

jtlocsei commented 7 years ago

Love this lightbox. Very easy to set up and works beautifully.

One question: how to make the image display bigger on the page? The image has a max-height style set by javascript, and I would like to make it a larger % of the page height.

screenshot 2016-11-29 11 07 03

mreq commented 7 years ago

I'll release a new version with an option of setting the height %. In the meantime, you can use css transform to scale the image up a bit.

jtlocsei commented 7 years ago

Thanks! For the time being I actually edited the bit of javascript that sets max-height = 0.9... and changed it to 1.0... and that increased the image size somewhat while keeping it centered on the page.

jtlocsei commented 7 years ago

Thanks for the quick fix!