
TexasWebDevelopers
Posts: 7040
Member since: 9/24/2002
From: USA

|
RE: Displaying Picture in box (in reply to Palmstead)
|
|
|
Visually your images are progressively smaller by 20% each so check the divs they are wrapped in to ferret out the error. You have also set the height in the CSS for img id="bxsz1" as a fixed height. This means that as the page is resized the height remains fixed but the width of the images will change and distort the image. Growing and shrinking images using CSS widths is very interesting (and not often used). I'm not sure why this technique isn't used more often as it is very powerful. As long as the "largest" image is clear then reducing the size has a nice effect. Take a look at this site as a nice example: http://www.rock-on-rock-on.com/ Simply resize the browser window to see the images scale using CSS. The generic CSS would look something like this: div {width:90%;} div img {width:90%;} There are some caveats: IE6 does not inherit the width of a parent with an undeclared width so be careful with percentages on child elements. Also, in IE, four images each at 25% may wrap to a second line because of rounding errors--so set the widths at 24.9% to adjust.
_____________________________
FrontPageTools.com:Templates, Tools and Training support this forum
|
|