Posted 24 October 2012 - 12:52 PM
There's 2 nav bars I'm customizing: the brandnav (purple header section with logo and nav), and the classic nav (black nav bar)
Here are the problems:
1. on the Brandnav, I've managed to code everything I wanted properly except the "li" active state when the user is on a child page. For example, the "services" page has a couple of child pages. When a user is in one of those, there's a white background in the "services" link that I can't find a way to remove (should be transparent, or the same purple color as background). Go to this child page so you can see:
2. On the Black Nav bar, I'm trying to simply do this:
- no background color on hover
- text color gray
- text color hover: light purple
- text color active: dark purple
That's all!!! And yet nothing I code seems to have an effect...
Here's my CSS code for these two sections at the moment:
I appreciate your help with this! We're going live on Friday with the site so I need to resolve this ASAP.
I would also like this opportunity to suggest something to you for a future update: Your framework is so advanced, it great! Customizing Nav colors should not be this hard! I've spent hours and hours on this... Why isn't there a color picker in the admin setting for each nav bar section??? Just include color pickers for text color, background, border, and for normal, hover and active states and you should be able to shake this issue off for good! (I've noticed it's a recurrent issue people have)
Posted 24 October 2012 - 02:40 PM
You need to use the current-page-ancestor selector to adjust the active item.
2. In this code, the extra li tags are unnecessary (i.e. li li a can just be li a):
Posted 24 October 2012 - 05:43 PM
On Brandnav, by targeting the following selector I was able to finally remove that white background,...
As for the other navigation bar, the black one, I tried what you suggested above and nothing. Same result... I don't understand it!
Any other suggestions?
Posted 24 October 2012 - 06:10 PM
Here's the CSS I'm using now:
Posted 25 October 2012 - 12:25 AM