I have an html page where in the middle there is a pic.
Is there a way to scale down the image with javascript in case it’s too big for the current monitor resolution?
I mean if a user with a resolution of 1600*1200 open an image of 1900*1200 the image should be scaled down to fit the window.
I can use jquery
Why not just use css?