You are here: Re: How to AUTO ReSize an <IMG.../> element on a web page? « HTML « IT news, forums, messages
Re: How to AUTO ReSize an <IMG.../> element on a web page?

Posted by dorayme on 10/31/06 21:53

In article
<1162322909.136704.164100@m7g2000cwm.googlegroups.com>,
"thisis" <helloOne@web.de> wrote:

> Hi All,
>
> My problem is:
>
> i have a web page/html that uses <img src="some img larger than the web
> browser width/height ok" .../>.
>
> the <img src="" ../> is very large in width/height than the web broswer
> width/height.
>
> i want to auto resize the <img src="" ../> so, when the pages finishes
> to load,
> the <img src="" ../> will fit/get in/show in the web browser.
>
> - eg. in internet explorer, on some web sites when an image is greater
> in width/height than the ie page a "thumb nail" is displayed
> autonatically on the image itself, enabling the client to size up/down
> the image in the ie web browser.
>
>
> My Question is:
>
> How to AUTO ReSize an <IMG.../> element on a web page?

You can, by setting the width you want.

<img src="" width="600">

Better is

<img src="" width="600" height="400">

But, generally, it is a bad idea. Everyone has to download the
huge image (which the browser then sizes according to your dim
instructions) and this uses up the earth's resources (bandwidth),
it slows things down (especially for dialup) and the results are
probably not as good as the better alternative:

To prepare your image at the viewing size in an image editor,
thus making it smaller in file size. The superior quality is due
to that browsers have inferior algorithms (cruder) for resizing
than most image software.

The circumstance in which a larger pic is worth posting is where
you want to have images scale with text size. Let me put this
another way: The circumstance in which a larger pic is worth
posting is where you really want to have images scale with text
size.

--
dorayme

 

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

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