You are here: Re: Specifying 100% image scaling « HTML « IT news, forums, messages
Re: Specifying 100% image scaling

Posted by Jonathan N. Little on 01/14/07 04:29

pmennen wrote:
> I searched the web and several FAQs, but I couldn't
> find the answer to this html graphics question.
>
> I have a thumbnail on my web page (called screen1_small.png).
> When the user clicks on the thumbnail, I want a new window
> to appear with screen1.png, a large 768 x 1280 image.
>
> I attempted to do this with the following html:
>
> <A HREF="screen1.png" WIDTH=768 HEIGHT=1280 target="_blank">
> <IMG SRC="screen1_small.png" align="left" Hspace="7"></A>

The "width" and "height" attributes are not valid on "a" elements.
Should be on your image...

<img src="screen1.png" width="768" height="1280" alt="Some big image">

>
> The problem is that the image looks terrible when scaled
> and I want the user to see it with 100% scaling even if
> the image is too big for the window.

With the above markup is will, unless the user has his browser set to
fit large images to window. If so, there is nothing you can do about the
what the user has *his* browser set up...

BTW I would not put an image 1280 pixels high on the web. Firstly, it
will be a very large download for dialup, and secondly I'm running 1280
x 1024 on my monitor which is higher than most and I would not be able
to view your image without scrolling! Resample to something smaller than
600!

--
Take care,

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

 

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

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