li Class of ‘active’ not targetable by CSS
I’ve done this 1000 times, and this may be because I’m frustrated that I can’t figure it out, but I am having so much trouble changing the appearance of my nag bar links based on the active page.
I’m using Codeigniter, so here is my navbar code:
Second, here is the CSS that’s Supposed to change the appearance of the links:
I’m at a complete loss of why this doesn’t work. If someone would be so kind as to knock me upside the head and remind me why I’m an idiot that would be great.
.active like so:
You were trying to style a child of
li with the class
Alternatively, you could also use: