Two ideas spring to mind:
- wrap the entire page content in a div with a specific ID, and change the link to point to that
<body>
<div id="top">
,,,,
<a href="'#top">
...
</div>
</body>
- taking it one step further (and admittedly a bit crazy, but seems to work fine in FF, IE and Opera from my really quick testing) add an ID to the body element itself and link to that
<body id="top">
...
<a href="#top">
,,,
</body>
Patrick
john wrote:
Hello, group.
I want to put a "top of page" link in the footer of one of my sites, so instead of using the <a name=""> tag, I <a href=""> to one of my ID's. The problem is, I've used "z-index" in the CSS so that the header and nav stay put when scrolling...but it doesn't work in IE. The result is that, in IE, when you hit the "to the top" link, it doesn't take you all the to the top of the page (where you can see the header and nav).
What I need is better solution. It's probably very obvious and I just can't formulate it at the moment. Any suggestions? You can see an example at http://www.drzeus.net/redesign/cslewis/faq/
Thanks!
-- _____________________________________________________ re�dux (adj.): brought back; returned. used postpositively [latin : re-, re- + dux, leader; see duke.] www.splintered.co.uk | www.photographia.co.uk http://redux.deviantart.com
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
