The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Anchor not workin :/

2 posters

Go down

Anchor not workin :/ Empty Anchor not workin :/

Post by Skelly Man September 16th 2010, 7:44 am

Im trying to do anchor links but they arnt working propperlycan someone help?
This is my code.
Code:
<H2 id="section2"></h2>

<A href="#section2">[0-9]</A>
<H2 id="section13"></h2>
<A href="#section13">[A].</A>
And this is the result
http://anime-underground.all-up.com/A-B-ah-h7.htm
Helps?
Skelly Man
Skelly Man
Forumember

Male Posts : 130
Reputation : 0
Language : english
Location : NSW, Australia

Back to top Go down

Anchor not workin :/ Empty Re: Anchor not workin :/

Post by StrongHold September 16th 2010, 7:01 pm

Well im guessing you want the links in the Alphabetical Search to link to the other sections... but thats not what your code says.

Code:

<div class="additional-meta">Alphabet Index</div>
 
<H2 id="section2"></h2>
 
<A href="#section2">[0-9]</A>
<H2 id="section13"></h2>
<A href="#section13">[A].</A>

That is whats in the source of the page. Therefore, when you click on the [A] it goes to the id section 13, which is surrounding the link [A]. The code is working perfectly... its just that it is pointing at the wrong area. I would suggest finding and editing this...

Code:
<u>[A]</u>

To this

Code:
<u id="section13">[A]</u>

and also remove the id=section13 from around the link in the Alphabet search

Hope this helps.
avatar
StrongHold
Forumember

Posts : 104
Reputation : 0
Language : English, HTML, CSS, PHP
Location : Canada

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum