I have an image http://bookholidayrentals.com/Pics/020641.jpg
which is 320 x 240 pixels
I want to display it slightly larger by specifing width and height percentages but even 102% gives something way to big.
It seems that if I specify:
.pic {
width:94%;height:94%
}
That I get the picture display as I want with properties of 353 x 264 [IE8]pixels.
Can anyone explain to me why?
Note: FF & IE8 give results a few picels different : FF: 320px × 232px (scaled to 353px × 256px).
The picture could have different dimentions and even be portrait - so using a percentage should keep the aspect ratio.
It would appear that the percentage actually applies to the container and not the image so I need to try a few more things.
Thanks David.
RFH Reseller: SKILLIT (12th April 2009)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks