I’ve got a very high resolution image which is meant to be displayed on any size monitor. The height is to always show in its entirety and the width will be scrollable via JavaScript. The containing element will have an overflow-x set to hidden. My question is how to best handle a variable height and still maintain the correct proportions.
Thanks for any help.
If you only set one of the dimensions (
heightorwidth, max and min also apply), the other will be scaled proportionally and maintain the aspect ratio.