If the HTML specified either only a smaller height or only a smaller width (not both) you would have scaled it down while keeping the right proportion.
You are making a good point here, I got the proportions wrong. Thanks for correcting my efforts. What you posted here looks good.