Page 1 of 1

magnificpopup width and height

Posted: Sat Jun 07, 2025 9:12 am
by grundman
Hello:

I am unable to adjust the width and height despite specifying it in the lightbox settings window. These settings do work in fancybox but I need it to be magnificpopup.

The settings I set are:

width:'90%',
height:'90%'

Is there a bug in the magnificpopup script or this type of lightbox does not support it?

Re: magnificpopup width and height

Posted: Sat Jun 07, 2025 9:59 am
by Pablo
Each lightbox has different settings. The width and height options only apply to fancybox.

For magnificpopup you will need to adjust the CSS.
https://dimsemenov.com/plugins/magnific-popup/

Related tutorial:
https://www.wysiwygwebbuilder.com/lightboxes.html

Re: magnificpopup width and height

Posted: Sat Jun 07, 2025 10:04 am
by grundman
Should I edit the CSS in the lightbox configuration window? Or should I create it in an .ini file? Or in an HTML page between <head> and </head>?

Re: magnificpopup width and height

Posted: Sat Jun 07, 2025 11:20 am
by Pablo
In most cases, you can add the custom style between the head tags.