Page 1 of 1

Lightbox size percentage (via settings)

Posted: Sat Sep 12, 2020 8:29 am
by miguelss
Hi WB community,

I have a doubt if I can set the size of any lightbox via settings whit a percentage of the size of the window.
I mean, instead of

width:500,
height:500

Can I create something like this?
width:75%,
height:75%

Thanks in advance!
M.

Re: Lightbox size percentage (via settings)

Posted: Sat Sep 12, 2020 9:03 am
by Pablo
I do not think that will work. The values must be a number.
http://fancybox.net/api

Re: Lightbox size percentage (via settings)

Posted: Sat Sep 12, 2020 9:08 am
by miguelss
Hi @Pablo,

Thanks for your answer, and of course for the URL!
I will play with it :D

Have a nice day!