Image size is expressed in pixels. If you want, you can specify only the width; the height will be resized proportionally, or vice versa. But you also have the option to specify both the width and the height. For example, suppose the following is your original image, which is 150 pixels high:
You could add a height=“75” attribute to the <img> tag, without specifying a width, like this:
<img src="tree.gif" style="float: left" height="75">
When you view the page, the image shrinks proportionally, like this:
However, if ...