Displaying long images
Posted: Thu Jan 05, 2023 12:04 pm
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.
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.