Tagged: custom height, dimensions, height, iframe, Lightbox
-
AuthorPosts
-
January 18, 2018 at 6:11 pm #899227
Hi, I have button at my site that should open a lightbox/popup with a text and some hyperlinks. For the content of the lightbox I created a webpage without header and footer, that is the text only. Top open this text in a lightbox/popup I linked the button to the page’s URL with ?iframe=true added to it.
So far, so good. The button opens the lightbox/popup containing the text.
However, the text is longer than than the height of the lightbox/popup. So users have to scroll. But not all users realize they have the option to scroll within the lightbox/popup. They ask me: where is the rest of the text?
So: how can I create a lightbox/popup that is as heigh as the text (even if it’s larger than the screen)?
This is what users see: https://snag.gy/DdSEGO.jpg
But here you see there’s some more text below: https://snag.gy/5CGt4V.jpg
And even more: https://snag.gy/Yk79e1.jpgCheers,
MarcJanuary 20, 2018 at 12:23 pm #900070Anyone?
January 22, 2018 at 8:13 am #900659Hi Marc,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaJanuary 22, 2018 at 10:16 am #900717Hi Victoria, this is where the lightbox is too low: http://geldenlevensgeluk.nl/zakelijk/
There’s a slideshow at the top of the page, with a button (‘LEES VERDER…’); just press the button.Thnx!
January 23, 2018 at 8:04 am #901246Hi Marc,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
.page.page-id-1579 .mfp-iframe-scaler iframe { min-height: 705px; }
If you need further assistance please let us know.
Best regards,
VictoriaJanuary 23, 2018 at 11:55 am #901396Hi Victoria, thnx, it seems that does the trick!
Wouldn’t it be nice if the lightbox/popup height scales automatically?
January 25, 2018 at 6:51 am #902633Hi Marc Bijl,
It normally does, with images, and does not seem to do it with text on your website.
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.