If the browser window is shrunk then I want the div and the image inside it to shrink too. But it has to stay in the middle and always stay the same proportions. Is this possible? I have been trying for ages without luck. I’m open to using jQuery or JS if necessary.

You may use something like this (using jQuery):