Reply to Re: Resize image dynamically

Your name:

Reply:


Posted by dorayme on 07/13/06 01:00

In article <pTftg.140049$771.55798@edtnps89>,
"Michael Laplante" <nowhereman@twilightzone.net> wrote:

> "Benjamin Niemann" <pink@odahoda.de> wrote in message
> news:e93o8r$vr6$1@online.de...
> > Michael Laplante wrote:
> > You can specify the image size in % via CSS (WIDTH and HEIGHT attributes
> > for
> > the IMG element are always in px).
>
> Is that percentage of the screen size or percentage of the original image
> dimensions?
> >

....of the container you are displaying the image in; if it is
body, it will be width of browser basically.... Normally, you
specify the width and height of the image in pixels. If you want
for it to scale, crappily if need be (most image enlargement is
crappy even in image software and should be avoided as far as
possible), don't specify both width and height, just width in %
and the browser will work out the height to save you specifying
in which case you need to get the % proportions correct.

--
dorayme

[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

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