[WSG] Images enlarging themselves

2007-01-11 Thread Lyn Patterson
www.westernwebdesign.com.au/test/flora3.html I have an image gallery with thumbnails and use js to enable them to open a larger version in a box on the same page. The problem is that some thumbnails - like the one shown - enlarge and distort themselves instead of staying the size they

Re: [WSG] Images enlarging themselves

2007-01-11 Thread Nick Cowie
Lyn You give the images a width: ul#img li img { display:block; position:absolute; bottom:0; width: 100px; } So the browser automatically scales the image, ie if image was 80px high and 50px wide. The image becomes 160px high and 100px wide. remove: width: 100px from

Re: [WSG] Images enlarging themselves

2007-01-11 Thread John Faulds
It's because you've given those images a width of 100px in your CSS. If they're narrower than that, they're going to come out distorted. On Fri, 12 Jan 2007 13:05:33 +1000, Lyn Patterson [EMAIL PROTECTED] wrote: www.westernwebdesign.com.au/test/flora3.html -- Tyssen Design Web print