Close modal by click outside the box

1 reply · opened Jan 30, 2019

DdschindlJan 30, 2019

Hello,

How can I configure the following behavior:
I need the "login modal" to be closed by clicking outside the white box instead of by clicking on the little "X" on the top-right edge of the screen. My page is based on the app-landing demo.

Thank you!

SSemicolon WebSTAFFJan 31, 2019

Hello,

Unfortunately, this is the Default Behavior of the Lightbox Plugin. While you can Click outside the box and still close but in this Lightbox Type, it happens only when you click Outside Vertically (not horizontally). However, you can consider adding the following CSS Code:

.mfp-content { max-width: 400px; }

This should work fine but it could affect other Lightbox Elements on the Page. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard