if you don't specify size of graphics?

  • Thread starter Thread starter Catherine Jo Morgan
  • Start date Start date
C

Catherine Jo Morgan

What happens if you don't specify height and width for an image? I mean,
what's the worst that will happen? TIA
 
And BTW, a little trick - You can set either height or width without the
other and the image will resize proportionally to the dimension that you did
set.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 
go to:
http://www.irfanview.com/

and download and install IrfanView and use it
to resize / resample your images and make them the actual
size you want to use in your web pages.
Your pages will load faster, and the images will be clearer.

And, it's a free program. I've used it for several years.
 
I used PSP and PhotoShop Elements to resize the images to the exact size I
want. That's why I wondered why it mattered to specify the size. I see the
point about the browser being able to anticipate the correct layout and
therefore loading faster. Thanks everyone.
 
That doesn't tell the browser how much space to allocate though, does it?
I'm starting with images that are the size I want, so it's just the load
time and browser anticipation that matter. Thanks tho.
 
It give the browser which ever value you have provided.

As a general rule, when I work with dynamic generated pages, I also specific
just the width, as the height rarely impact a layout as much as the width of
images.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
I didn't say anything about the browser allocating space. I was simply
providing a little tidbit of information which is often useful, particularly
in dynamic web applications. It was for general benefit, not as a solution
to your problem.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 
Back
Top