By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,487 Members | 1,074 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,487 IT Pros & Developers. It's quick & easy.

returning to the top of the window in XHTML

P: 16
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.
Jan 31 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.