View Full Version : Proportional Images

10-31-2007, 08:02 AM
I have an image in a <div>. The <div> has a fixed height and width. I want the image to expand to fill the entire width of the parent <div>, with its height adjusting proportionally. There are many different images which may be used, so I cannot calculate the proportions beforehand. [How] can I do this with CSS?

10-31-2007, 11:18 AM
<img src="path" height="100%" width="100%"/> ??