You are here: Re: Image not resized to browser window « HTML « IT news, forums, messages
Re: Image not resized to browser window

Posted by Don on 10/21/06 02:06

dorayme wrote:
>
> In article <45397B7D.EB350C0A@sendspamhere.com>,
> Don <me@sendspamhere.com> wrote:
>
> > How do I make a large image be resized so it all fits in the browser
> > window? I've found I.E.'s "Enable Automatic Image Resizing" setting
> > works if the image is opened via a link directly to the picture. Or, if
> > the image is opened in the browser with "File, Open".
> >
> > However, if the image is CONTAINED WITHIN its own HTML page, with "<img
> > src" tag, it does not work!! Is this just me? Very simply, if I have a
> > page:
> >
> > <html>
> > <head>
> > <title>IMG_1981</title>
> > </head>
> > <body>
> > <img src="IMG_1981.jpg">
> > </body>
> > </html>
> >
> > then image resizing does NOT work! How can I get resizing to work in
> > this page? I do NOT want to specify any particular size, rather I want
> > the image to be resized to be fully contained in the browser window,
> > however big the window is.
> >
> > Many thanks in advance!
>
> Try this and tell me if it works:
>
> <html>
> <head>
> <title>IMG_1981</title>
> </head>
> <body>
> <img style="width:100%;" src="IMG_1981.jpg">
> </body>
> </html>
>
> (I assume landscape and width is most important dim)
>
> --
> dorayme


It works! You are golden, many thanks!!

 

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

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