You are here: Re: img size « HTML « IT news, forums, messages
Re: img size

Posted by David Dorward on 09/25/05 15:02

diablo wrote:

> is there a way to restrict the width and height of an img?
>
> what i want to do is if the img is less than 200x200 then i want it
> displayed at its size. but if it is bigger that 200x200 then i want it to
> be resized as 200x200.

img { max-width: 200px; max-height: 200px; } in supporting browsers.

By the way, your shift key appears to be broken. I suggest you get it fixed
as it makes your Usenet postings look rather silly.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

 

Navigation:

[Reply to this 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

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