June 14, 201016 yr Hi, I tried this before but am not sure why my To top is not working anymore. Here's my code; <a name="top"></a> <p><a href="#top"><font size="-1">To top</font></a></p> Even When I changed the font to a larger size like 15px, it still won't show .... Hope someone can advise on where I had gone wrong. tks.
June 15, 201016 yr I've used <a href="#">top</a> before, but notice this just sends the user to the very top of the page, when usually you want to send them to the top of the content (below header and often top navigation), which is different than the page top.
June 15, 201016 yr the top is the top!!! If ya want to target something other than the top then obviously put in a anchor for say the beginning of the content.
June 16, 201016 yr Author Try <a id="top"></a> instead of name="top" Thanks. It works now. only thing is that I have use ahef and my css a I have made it white so it won't show the word top. How can I show the word but when comes to the button I don't want to have any outline ?
June 16, 201016 yr This is one way:- <p><a href="#top"><span class="top">To top</span></a></p> New CSS style:- .top { color: red; font-size: 8px; } I have incorporated the font size in px in this style and deleted the <font-size="-1">....</font-size> from the markup. Add any other styles you want. Link at the top:- <a id="top"></a>
Create an account or sign in to comment