gw1500se Posted February 27, 2020 Share Posted February 27, 2020 I'm not sure if this possible but I have a bunch on links on my page that are jpg files. When I click on the link it opens the image in a new window which is exactly what I want. However, I need that jpg to automatically resize as if there were an img style attribute: img { max-width=100%; height=auto; } Is there a way to do that without creating an HTML page for each JPG with an img tag in it? TIA. Quote Link to comment Share on other sites More sharing options...
requinix Posted February 27, 2020 Share Posted February 27, 2020 If all you do is point the browser to the image, you can't control how it displays. So no, you would have to set up a page. Consider a lightbox-type feature. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.