Connecting Tech Pros Worldwide Forums | Help | Site Map

width="100%" attribute

Saqib Ali
Guest
 
Posts: n/a
#1: Jul 20 '05
Howdy Folks,

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?

Thanks.
Saqib Ali
http://www.xml-dev.com

Philipp
Guest
 
Posts: n/a
#2: Jul 20 '05

re: width="100%" attribute


It still looks good on IE 6.0...


Chris Morris
Guest
 
Posts: n/a
#3: Jul 20 '05

re: width="100%" attribute


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
Closed Thread