Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Anchor not working in Firefox

Options
  • 24-08-2007 1:44pm
    #1
    Registered Users Posts: 872 ✭✭✭


    Hi, i have a link on a page :
    <a href="#whatsIncluded" class="whatsIncluded">Whats Included ?</a>
    

    then further down the page i have :
    <a name="whatsIncluded"></a>
    

    When i click the link in IE6 or IE7 it jumps down to the anchor but it doesnt do this in Firefox

    Any ideas ?

    Thanks


Comments

  • Closed Accounts Posts: 270 ✭✭CoNfOuNd


    Works fine for me using FF.

    What's your sites URL?


  • Registered Users Posts: 3,594 ✭✭✭forbairt


    have you possibley defined it twice and it doesn't know which one to go to ?


  • Registered Users Posts: 872 ✭✭✭grahamor


    Thanks for the replys

    Confound : its an internal site so i cant post the link, sorry.

    I think this was occuring because i didnt have any text between these tags
    <a name="whatsIncluded"></a>
    

    i changed it to
    <a name="whatsIncluded">text</a>
    

    and now it works.

    Thanks again


  • Registered Users Posts: 15,065 ✭✭✭✭Malice


    Glad you figured it out! One small tip is if you don't want to have text in the named anchor link, add a non breaking space. Do something like:
    [PHP]<a name="whatsIncluded"> </a>[/PHP]
    That way the link will work but you won't have to add text to it if you don't want to.


  • Registered Users Posts: 6,511 ✭✭✭daymobrew


    grahamor wrote:
    I think this was occuring because i didnt have any text between these tags
    <a name="whatsIncluded"></a>
    
    I don't see this in my page which doesn't have text between the tags. I works for me in Windows using Firefox 2.0.0.6, IE 7, Safari 3.0.3 and Opera 9.23. Test page attached (HTML file renamed to .txt as html files are not permitted attachments).


  • Advertisement
Advertisement