Anchor not workin :/
2 posters
Page 1 of 1
Anchor not workin :/
Im trying to do anchor links but they arnt working propperlycan someone help?
This is my code.
http://anime-underground.all-up.com/A-B-ah-h7.htm
Helps?
This is my code.
- Code:
<H2 id="section2"></h2>
<A href="#section2">[0-9]</A>
<H2 id="section13"></h2>
<A href="#section13">[A].</A>
http://anime-underground.all-up.com/A-B-ah-h7.htm
Helps?
Skelly Man- Forumember
- Posts : 130
Reputation : 0
Language : english
Location : NSW, Australia
Re: Anchor not workin :/
Well im guessing you want the links in the Alphabetical Search to link to the other sections... but thats not what your code says.
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...
To this
and also remove the id=section13 from around the link in the Alphabet search
Hope this helps.
- 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.
StrongHold- Forumember
- Posts : 104
Reputation : 0
Language : English, HTML, CSS, PHP
Location : Canada
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum