Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Anchor not working in Firefox

  • 24-08-2007 12:44PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 3,594 ✭✭✭forbairt


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


  • Registered Users, Registered Users 2 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, Registered Users 2 Posts: 15,079 ✭✭✭✭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, Registered Users 2 Posts: 6,733 ✭✭✭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
Advertisement