Page 1 of 1

Displaying long images

Posted: Thu Jan 05, 2023 12:04 pm
by Norfolkman
Happy New Year to one and all!
I need to display images which are generally 650px wide x height between 4000 & 6000px preferably in a light box. The problem is that the browser defaults to showing the full height, rather than the full width with scroll bar, which results in a long thin image. I realise that this is a browser function rather than a programming one, but is there a way in html to force a visitor's browser to show full width initially? Yes, I know they can click on the image to enlarge it to full size. At the moment, I add the image to an HTML page and then call up the page, but this is a long-winded approach when I have a lot of images. Any thoughts would be most welcome.

Re: Displaying long images

Posted: Thu Jan 05, 2023 12:17 pm
by Pablo
I think that most lightboxes will try to fit the image on the screen instead of showing scrollbars.
But WWB support many different (third party) lightboxes so maybe one of them does what you want?
https://wysiwygwebbuilder.com/lightboxes.html

Re: Displaying long images

Posted: Thu Jan 05, 2023 1:05 pm
by Norfolkman
Thank you Pablo,

Unfortunately, I am calling the image from a text link, so I don't have all the different lightbox options.

Re: Displaying long images

Posted: Thu Jan 05, 2023 1:54 pm
by Pablo
You can set the lightbox for links in the page properties.

Re: Displaying long images

Posted: Thu Jan 05, 2023 2:03 pm
by Norfolkman
O K Thanks.

Re: Displaying long images

Posted: Thu Jan 05, 2023 10:35 pm
by rogerl
When you set the link properties i.e. open in light box, there is a settings box. Open that and set height and width there. So if you select Fancybox the settings would be
height: xxx,
width: xxx
Need to check the lightbox web sites for correct syntax, been some time since I used this. They are not all the same.

Re: Displaying long images

Posted: Fri Jan 06, 2023 9:35 am
by Norfolkman
Thanks, I'll give this a try.