...

View Full Version : Proportional Images



error792
10-31-2007, 07: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?

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum