[thelist] Not declaring image dimensions

Liam Delahunty liam at megaproducts.co.uk
Mon May 17 15:35:39 CDT 2004

on 17/05/2004 16:27 Clive R Sweeney wrote:

> It's become second nature now to *always* include the height and width
> for images, but what is the downside of not including dimension
> attributes in an image tag? Is it that the page will load more slowly
> and that the page display will change as the images load? Or is there
> more to it than that?
> ::. clive
> Clive R Sweeney
> Durham, North Carolina

There's an interesting bug in Internet Explorer 5.5 [1] if you don't 
declare image sizes on rollover border effects.


Some of the images don't have the width height set, so when you rollover 
the image in that browser the whole image disappears!

[1] haven't tried IE6 or IE4. Rollover works fine in Firebird and Opera.

As others will point out, pages without image sizes coded have a 
re-rendering effect as the images load into the empty image 
placeholders, thus moving the text 'round.

Kind regards, Liam Delahunty, Mega Products Ltd
12 Bury Place, London WC1A 2JL Fax: +44(0)871 224 7891
http://www.megaproducts.co.uk/ Internet Design & Development

More information about the thelist mailing list