how to automatically center content in a light box

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
Mariasol
 
 
Posts: 27
Joined: Tue Feb 08, 2022 9:19 am

how to automatically center content in a light box

Post by Mariasol »

hello,

the content of my light box is a page(linkted) that only contains a card with links (full page, no layer)
property of the page: center horizontally and vertically in the browser window.
there are breakpoints so that the card adapts to different screens.

but once published the content of the light box is not centered (vertically, horizontally) according to the different screen sizes.
the light box is set to fancybox in the properties of the 2 pages.
I did not find options in : http://fancybox.net/api.

thank you if you find me a solution,
Mariasol
ps: sorry if my english is not good but i am french speaking
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: how to automatically center content in a light box

Post by Pablo »

I am not sure if fancybox support this.

Maybe it is better to use a dialog instead?
Mariasol
 
 
Posts: 27
Joined: Tue Feb 08, 2022 9:19 am

Re: how to automatically center content in a light box

Post by Mariasol »

by clicking on a card (card 1), I want to display another card(card2) in full page and centered (if possible modal) but I would like, if possible, map 2 to be elsewhere so as not to overload the weight of the page before the 1st map is requested.

I can put a link on the 1st card to display a dialog box but how then specify to display the 2nd card in this dialog box?

whether by link or by events in this 1st card, I would like that by clicking on it a 2nd card is displayed in full screen or in the middle of the window.

thank you for your help especially if you find a solution
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: how to automatically center content in a light box

Post by Pablo »

You can either place the card directly inside the dialog or use an inline frame inside the dialog to display another page.
To center the card inside the other page, you can use a flex container in that page.
Mariasol
 
 
Posts: 27
Joined: Tue Feb 08, 2022 9:19 am

Re: how to automatically center content in a light box

Post by Mariasol »

thank you, I'll try that :D
Post Reply