I have the navigation bar for my website posted below:
Whenever the active menu option is either Home, About, or Contacts, the navigation bar is align perfectly as you select between the different options.
However, when I'm in the Members option, the navigation bar shifts a little bit to the left. I want to shift it a couple pixels to the right so it aligns perfectly during navigation.
I applied CSS to the following block element:
.navigation > li > a
{
some styling
}
This affects the styling of the nav bar during navigation.
However, how would I apply some margin styling to the nav
bar when Members is selected?
I could rename the class name, but then I would have repetitive code to style the nav
bar again, along with the newly added margin fix.
Is there some way to check that when Members is the "active" selection, then apply some CSS margin styling?