SCALING IMAGES

R

Rob

Hi,

I know tables can be scaled so they automatically occupy the page
width at any screen resolution, but is there any way that images can
also auto scale to cope with differing viewing resolutions.

TVMIA
 
J

Jim Higson

Rob said:
Hi,

I know tables can be scaled so they automatically occupy the page
width at any screen resolution, but is there any way that images can
also auto scale to cope with differing viewing resolutions.

TVMIA

Try width:100% in the stylesheet.
However, it might be a better idea to just have different resolutions
avaliable, when images are scaled up they tend to look pretty rough.
 
J

Jan Faerber

Rob wrote in:
alt.html.webedit,alt.html,alt.html.editors.webedit

Not me mate - today I am sober.
 
N

Neal

Hi,

I know tables can be scaled so they automatically occupy the page
width at any screen resolution, but is there any way that images can
also auto scale to cope with differing viewing resolutions.

Browsers can scale images, but they do an awful job of it. If it's
something extremely simple you could make it work.

Don't set height and width in the HTML, and set width: 100% in CSS. But
the height should be proportional to the image's proportions, but I think
there are UAs which might screw this up, not sure.
 
K

kchayka

Neal said:
Don't set height and width in the HTML, and set width: 100% in CSS. But
the height should be proportional to the image's proportions, but I think
there are UAs which might screw this up, not sure.

KHTML browsers do less well with this than other browsers. There is some
magic point where the height stops scaling proportionate to the width.
With a wide window, the image ends up stretched horizontally. I've seen
this with both Konqueror 3.2 and Safari 1.0 v85, don't know about other
versions.

You may decide the percentage of those users isn't large enough to worry
over.
 
N

Neredbojias

Without quill or qualm, Rob quothed:
Hi,

I know tables can be scaled so they automatically occupy the page
width at any screen resolution, but is there any way that images can
also auto scale to cope with differing viewing resolutions.

I did exactly that with javascript. Actually, it was 12 images which
resized no matter what resolution or how you resized the browser
horizontally or vertically. If you **really** want, I'll dig out the
page and put it up so you can see it and view the code.
 
R

Rob

Neredbojias said:
Without quill or qualm, Rob quothed:


I did exactly that with javascript. Actually, it was 12 images which
resized no matter what resolution or how you resized the browser
horizontally or vertically. If you **really** want, I'll dig out the
page and put it up so you can see it and view the code.

Yes please, if you could. Many thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top