SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Jun 2009
    Posts
    815
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    bizarre - links not working in Chrome

    http://mayacove.com/dev/misc/test_chr_fn.html

    I know this will look a bit weird, but this is how we do footnotes where I work.. they want users to be able to link back to footnote reference while reading footnote..

    for some odd reason these footnote links are not working in Chrome.. they work in every other browser, but not Chrome... we were using anchor-names.. I did some research yesterday and found this
    http://www.sitepoint.com/forums/show...ers-in-the-URL

    so got rid of anchors, linking to id's now... but Chrome still won't play ball.. not even sure if this is a CSS problem, but simply do not what the problem is..

    thank you..

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,355
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    HI,

    Chrome doesn't like the fact that you are absolutely placing those hidden links from within that inline element and is getting confused and probably thinks the destination is somewhere else.

    You can either set the anchors to inline-block:
    Code:
    a.fnlink{display:inline-block}

    Or move the id on to the p element instead.

    Code:
    <p id="footnote1"><a onclick="wi etc....

  3. #3
    SitePoint Guru
    Join Date
    Jun 2009
    Posts
    815
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    oh my gosh..... thank you!!

    putting id's in <p> instead of <a> did it... duh... can't believe I hadn't thought of that.. sometimes when you get so used to a certain code you just don't always think outside the box..



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •