• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

IE links

xoggoth

More fingers than teeth
Joined
Jul 8, 2005
Messages
17,131
Likes received
4,950
Thanks received
1,184
Location
xoggoth towers
On a page with largish images above, has anyone else noticed that IE does not always open at the correct place when you try to go to a specific link? Any ways round it?

Cheers

PS Yeh, yeh. Use Firefox I know. Not an option as this is webbrowser in .net but get same as problem in ordinary net pages.
 
Last edited: 13:59
I presume you mean in the case of a link like example.com/foo.html#section2 where the page should scroll to the correct position for Section 2, but then the loading of the large images above shoves the page content down so you end up in the wrong place?

One solution that I think should work is to specify the image's width and height in the img tag:
Code:
<img src="blah.jpg" width="600" height="600" alt="blah">
as IE will then know, as it parses the HTML, how much space it needs to leave for the image, rather than finding out when the image actually arrives, after which it's already done the scrolling. (Contrary to popular belief, the "width" and "height" attributes aren't deprecated for images in any of HTML 4.01, XHTML 1.0, or HTML 5.)
 
Cheers Nick, I'll try that. Come to think of it I haven't seen the problem recently in my business website since I ran online checks and did all that stuff one is supposed to do, including explcitly putting in images size.
 

Advertisers

Back
Top