riegal Posted March 11, 2008 Share Posted March 11, 2008 I'm adding a Back to Top link to my document. I've searched around these forums, Google, etc but haven't come up with any help.One suggestion was to "paste anchor ( <a name="top"></a> ) to theme header.html and that link ( <a href="#top">Back to Top</a> ) to footer.html". Now I'm not really sure what all that means and, again, a search didn't turn up any help.I didn't find anything called a theme header.html in my document. The top of my document before the body looks like this:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title><style type="text/css"><!--.style6 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold;}.style12 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;}.style14 { font-size: 14px}.style16 { font-size: 14px; font-weight: bold;}--></style></head>So where is the theme header in all that?And I'm not sure why putting a link in the footer of my document would allow a Back to Top link elsewhere in the document to return the user to the top of the page.Any help is greatly appreciated.Thank you. Link to comment Share on other sites More sharing options...
bellavan Posted March 11, 2008 Share Posted March 11, 2008 I'm adding a Back to Top link to my document. I've searched around these forums, Google, etc but haven't come up with any help.One suggestion was to "paste anchor ( <a name="top"></a> ) to theme header.html and that link ( <a href="#top">Back to Top</a> ) to footer.html". Now I'm not really sure what all that means and, again, a search didn't turn up any help.A name anchor ( <a name="top"></a> ) allows you to mark a place in the page that can be addressed by a browser. The reference tag ( <a href="#top">Back to Top</a> ) actually is expanded to <a href="http://mywebhost.com/mypage.html#top">Back to Top</a> and just means 'go to the spot named "top" in this page'. I'm not sure what was intended by "header.html" or "footer.html", but I'm guessing you found this on a site which built its pages from multiple files. All you need to do is put the name anchor near the top of the page "body" and then insert the #top reference anywhere in the page where you want a link pointing back to the top of the page. Hope this helps.Regards,Angela Link to comment Share on other sites More sharing options...
riegal Posted March 11, 2008 Author Share Posted March 11, 2008 Thank you for responding. That's the kind of answer I needed: clear and concise. I know what to do now. Thank you very much. Link to comment Share on other sites More sharing options...
vchris Posted March 11, 2008 Share Posted March 11, 2008 I just use <a href="#">Top</a> and no matching anchor. Works fine. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.