Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Highlight anchor linking to corresponding content on same page?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36307
    Tribbey
    Member

    I have a list of items linking to anchors on the same page as my content and I have been trying to highlight the current link selected because I have a fixed container div with my content beside the list with hidden overflow as to simulate a show/hide effect.

    I’ve worked out a similar example in jsfiddle to better illustrate what I’m trying to accomplish.

    I can’t seem to highlight the link corresponding to the displayed content. I have used pure html/css to highlight the selected menu item of a current page but not with items that link to content on the same page. I know how I would implement javascript, but I was hoping to find a css workaround.

    Any suggestion? Appreciate your responses, thanks.

    #96154
    soap
    Participant
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.