I want to resize an image so that it takes up 100% width of the page and 40% of its height but without distorting the image's natural ratios.
I came across this tutorial but I can't seem to get it to work with percentage values rather than just pixel or em values.
Any ideas how this might be done? Much thanks.