Anchor link weirdness

Yes, I know there is a problem with anchor links (e.g., when you click on the recent comments in the sidebar). You end up seeing only that comment, and not the post or any of the other comments. This is a side effect of using the otherwise kickass One True Layout. I must say I was a bit surprised to see this problem show up; I had thought it was an issue only with named anchors (e.g., <a name="whatever">), but apparently it’s also an issue with referring to IDs. And now that I think about it, that makes sense; why would it be an issue with named anchors but not IDs?

Anyway, it’s frustrating; I’ll let you know when I find a fix. I am not going to ditch the One True Layout, that’s for sure!

Update: I have a temporary solution to this problem. It involves reverting to named anchors instead of IDs on divs, and giving each anchor position: absolute (If you’re really curious, you can view the source). I’ll need to put in some hacks for IE, but then there’s a lot I need to do for IE, hence the current no-stylesheet version. And I also don’t know yet how this behaves in Safari or Opera.

One Response to "Anchor link weirdness"

  1. griftdrift says:

    Wow. This is like the old days!

    griftdrift = shameful IE user