anchor tags not working

User 243515 Photo


Registered User
508 posts

I have been using anchor tags for awhile now and have never (until now) encountered any problems. Now however, I've placed them on a page and the tags are not working at all? I've gone through all of the other site pages that I've used them in and the only difference I can tell is that the new site is using CSS <div id=""> tags. Now, could there be a conflict with these two that I should know about? I'm using the regular anchor tag: <a href="#name"></a> and <a name="name"></a>.


Thank you;
Greg
User 364143 Photo


Guest
5,410 posts

The div shouldn't matter unless you have an element name or id that's the same.

Try this for grins and giggles.
<a name="name">&nbsp;</a>

You can also use any emement the id name to go there
<div id="name"><p>hello</p></div>
<h1 id="name">hello</h1>

CoffeeCup... Yeah, they are the best!
User 243515 Photo


Registered User
508 posts

Tony the Tiger wrote:
The div shouldn't matter unless you have an element name or id that's the same.

Try this for grins and giggles.
<a name="name">&nbsp;</a>

You can also use any emement the id name to go there
<div id="name"><p>hello</p></div>
<h1 id="name">hello</h1>



Oh, for the love of .... I didn't see the space in the other tags I looked at! Didn't use the nbsp though either

Geez, thank you Tony. I really appreciate the help. Thought I was losing it there for a bit.

Greg
User 364143 Photo


Guest
5,410 posts

I'm happy to hear ya got it working. :)
CoffeeCup... Yeah, they are the best!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.