• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • 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

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    IE links

    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 by xoggoth; 10 May 2010, 13:02.
    bloggoth

    If everything isn't black and white, I say, 'Why the hell not?'
    John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

    #2
    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.)

    Comment


      #3
      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.
      bloggoth

      If everything isn't black and white, I say, 'Why the hell not?'
      John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

      Comment

      Working...
      X