|
Posted by Rik on August 9, 2006, 6:48 am
Please log in for more thread options
jim039845 wrote:
>> Adding the relevant dimensions of the images in the HTML would
>> certainly help - the problem is that the browser jumps to that point
>> on the page once the page itself loads, but then when the images
>> load the page is rearranged because it doesn't know in advance how
>> much space to reserve for the images.
>
> Yes!! That was it!! Problem solved!!
>
> The solution was to add dimensions for every image on the page - even
> spacer images - like so: <img
> src="http://www.postpositive.net/images/spacer-horizontal-10px.gif"
> width="1" height="10" alt="">
>
> Also, making sure the page validates against the W3C HTML validator
> is a good idea....
>
>> IIRC there was a discussion about this only recently - I think it was
>> over in alt.html.
>
> I guess misery loves company.
>
> As far as I know, width and height dimensions are supposed to be
> "optional" (according to the W3C spec). So much for optional...
Yup, but it's exactly their reason for existing. Not to resize images, for
which it's often abused, but to give the browser a hint how large the image
is before loading, so the page isn't rearranged on an image load. Not always
necessary, so optional, but in this case very welcome :-).
Grtz,
--
Rik Wasmus
|