Page 1 of 1

Lightbox custom width and height

Posted: Sat May 18, 2019 4:47 pm
by jsgecko
Hi,
I want to adjust the width and height for a lightbox image, but I forgot how to code width and height of the lightbox.
Any help will be appreciated.
Thank you so much.

Re: Lightbox custom width and height

Posted: Sat May 18, 2019 5:09 pm
by Pablo
Which lightbox are you using?

Re: Lightbox custom width and height

Posted: Sun May 19, 2019 12:00 am
by jsgecko
the menu bar

Re: Lightbox custom width and height

Posted: Sun May 19, 2019 12:33 am
by jsgecko
Here is what I entered in the settings

width:'640',
height:'641'

Thank you

Re: Lightbox custom width and height

Posted: Sun May 19, 2019 7:18 am
by Pablo
These settings are for the 'fancybox' light box only.
Did you select 'fancybox' as the lightbox for the page?

Re: Lightbox custom width and height

Posted: Sun May 19, 2019 11:10 am
by jsgecko
Not fancy box. I'm using the lightbox from the menu bar

Re: Lightbox custom width and height

Posted: Sun May 19, 2019 11:17 am
by Pablo
Which lightbox do you have selected in the Page Properties?
The settings are different for each lightbox.

Re: Lightbox custom width and height

Posted: Sun May 19, 2019 11:27 am
by jsgecko

Re: Lightbox custom width and height

Posted: Sun May 19, 2019 11:54 am
by Pablo
Which lightbox do you have selected in the Page Properties?

Re: Lightbox custom width and height

Posted: Mon May 20, 2019 12:20 pm
by jsgecko
magnificpopup

Re: Lightbox custom width and height

Posted: Mon May 20, 2019 1:14 pm
by Pablo
magnificpopup does not support width and height, you will need to select 'fancybox'

Re: Lightbox custom width and height

Posted: Tue May 21, 2019 5:55 am
by jsgecko
I changed the page properties to fancybox.

In settings I entered

width:'640',
height:'641'

Is the code correct?

Re: Lightbox custom width and height

Posted: Tue May 21, 2019 6:04 am
by Pablo
I think it should be

Code: Select all

width: 640,
height: 641
See also:
http://fancybox.net/api

Re: Lightbox custom width and height

Posted: Wed May 22, 2019 9:28 am
by jsgecko
Thank you Pablo. It works! :)