returning to the top of the window in XHTML

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wavedancer
    New Member
    • Jan 2007
    • 16

    returning to the top of the window in XHTML

    I asked this question a few days ago but despite much head-scratching I haven't been able to resolve it yet. I hope it is OK to ask it again.

    I want to make links back to the top of the browser window from various points on the page, but I've been unable to do this because unless I put the anchor tag right inside <body> clicking on the link won't take me right back to the top of the page in Safari, although it will in the other browsers I've tested it in (Firefox 2.0.0.1 Mac/Win, Opera Mac/Win, IE 5.2 Mac/6 Win).

    If I leave it right inside the body tag it won't validate as XHTML strict – I am prompted to put it inside <p></p> or another container pair, but if I do this it creates a gap in my layout.

    Can anyone please suggest how I might get around this problem? Maybe there is something wrong in my code.

    Here is the link.

    Thank you.
Working...