saqib@stonebeat.org (Saqib Ali) writes:[color=blue]
> I have a b/w fotograf that i am displaying on a website using the
> width="100%" attribute so that it spans the width of the web browser
>
> The rosolution of the picture is 1296 x 204. However when I display it
> with width="100%", it doesn't look good anymore.
>
> Here is the URL to the picture if you want to view it:
>
http://www.xml-dev.com:8080/cocoon/mount/docbook/
>
> Somebody at the digital fotografy newsgroup suggested I should not use
> the width="100%" on my image.
>
> My question is how can i make a picture span the whole width of the
> page without using the width attribute?[/color]
The problem is not the *method* used to set the width to 100% - as an
alternative you could use the CSS width: 100%; property - but the fact
that you are doing it at all.
The image is 1296 pixels wide. If it's displayed at any other width,
it has to be resized, *by the web browser*. Web browsers' image
resizing is fairly poor quality, and so if the browser viewport is not
1296 pixels wide (especially if it is _wider_) then there may be
problems.
--
Chris