- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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
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.
Here’s something I googled…the CSS way: http://csscreator.com/topic/css-current-page-nav-link-highlight
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!