Reply to Re: limit image size

Your name:

Reply:


Posted by Jonathan N. Little on 06/22/06 19:30

Nikko wrote:
> Hi,
> Is it possible to do this with css?
> I want to limit height image to a certain value:
> If the original image's height is larger than desired value, show image
> with height equals to desired value.
> If the original image's height is smaller than desired value, do nothing
> and show image with this original height size.

Yes but don't. Please resample your images to the exact pixel dimension
you require. Scaling images rather than resampling them means that even
though they may appear smaller on the page you are still downloading the
*whole full-size* image. Secondly the rescaling done by the browser is
far poorer than the results from resampling the image, so it will look
bad as well. Nothing stalls a dialup connection more than a page full of
"thumbnails" that are 1000+ pixel images just scaled on the page!

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация