The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Anchor not workin :/

View previous topic View next topic Go down

Anchor not workin :/

Post by Skelly Man on September 16th 2010, 1:44 pm

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
Forumember

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

Back to top Go down

Re: Anchor not workin :/

Post by StrongHold on September 17th 2010, 1:01 am

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.

StrongHold
Forumember

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

Back to top Go down

View previous topic View next topic Back to top


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