Forums

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

Home Forums CSS Bootstrap Active Links Problem

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43357
    bobrast
    Participant

    I’m building out a Bootstrap responsive site and can’t get the sidebar nav links to highlight when the linked page is active. Dunno if I’m leaving out something, but here’s the sidebar nav code:

    All of the solutions I find online suggest that I have to use SASS or Less to get the active links set. I’d like to not use them. Any ideas?

    Many thanks,

    Bob

    #128040
    Paulie_D
    Member

    Your HTML won’t help we’d need to see the CSS.

    Do you have a live link?

    SASS/LESS is just another way of writing CSS…not sure that will help.

    However, there are a couple of ways of setting an ‘active’ class. Javascript is one, but there are others.

    #128050
    Paulie_D
    Member

    Here’s something I googled…the CSS way: http://csscreator.com/topic/css-current-page-nav-link-highlight

    #128253
    bobrast
    Participant

    Thanks for that link, Paulie. As I read about giving the body tag a unique ID, I had one of those “duh” moments that spur the memory … appreciate it!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.