Quote:
Originally Posted by Quoth
You either set height and and width to px (never em or rem), or set one to auto and the other to a %
|
Agreed about setting either height/width to a value and the other to auto, as this maintains aspect ratio.
But, "em" is a perfectly valid way to declare the value, especially for height, if you want the image to scale with user font size changes. For an image that shouldn't change size with font size changes, then px or % would be correct.