How to add a little zing to your main menu tabs. Add a different background color, when someone hovers a menu tab. Ning enables us to set this value for sub-tabs, under Manage/Tab Manager.

  • Decide what background color you will use for the active menu option & hovered menu option. This code only uses 1 color for both.
  • Add the following code to your CSS, "Manage/Appearance/Advanced CSS"
  • Change the color:#16BFFF to your chosen color.


#xg_navigation ul li.this a, #xg_navigation ul li a:hover {
background-color:#16BFFF;
background-repeat:repeat-x;
}

If you want to override the sub-menu tab settings, add !important - - using code below.

#xg_navigation ul li.this a, #xg_navigation ul li a:hover {
background-color:#16BFFF!important;
background-repeat:repeat-x!important;
}
This code should make the background color:#16BFFF for:
1. Your active Menu Tab
2. Hovered Tabs

Hopefully, it won't interfere with any other CSS your using. You can also use an image for the background. Remind me to add that later.
~Jen~

Views: 1528

Reply to This

Replies to This Discussion

Hi Jen - thanks

 

Actually I also want to change one of my navigation tabs text colors to red but this is not working:

#xg_tab_xn127 {color:white;}

 

But by "subtabs" I mean the drop down menu items, not the various navigation tabs that you listed.

 

Let me try and explain:

For the horizontal navigation tabs I'm using a gradient background color similar to what Apple is using just in different colors.

But for the drop down menu I'm using a semi-transparent white background color and just a totally different styling.

My problem is that the drop down menu items (subtabs) somehow get the same gradient colored background BEHIND the white transparent color, which then means that it's not so transparent suddenly :)

 

Does that make sense?

The problem is that the styling applied to #xg_navigation ul apparently scoops down into my subtabs / drop down menu area. So I was wondering how I can specify "only horizontal tabs" and leave out the subtabs?

You are way too AWESOME. Way to AWESOME Jen.

is there a way to make just the font change color on hover and after being selected? in other words, i have a black background with a light blue font. when i hover over it, i just want the WORD to change to orange, and then when i click it, to stay orange.......can that be done?

Yeah, that can be done. Just change the parameter background-color to color. Change to your colors.

 

/* Regular State */

#xg_navigation ul li a {
color:#003366;
}

 

/* Selected State */

#xg_navigation ul li.this a {
color:#16BFFF!important;
}

 

/* Hovered State */

#xg_navigation ul li a:hover {
color:#FFF000;
}

w00t! thank you Jen!

 

 

LOL, I love Carlton!

RSS

Latest Activity

Riccardo Rossini replied to Riccardo Rossini's discussion 'FANTASTIC!!'
"How can I do the same in Facebook? It seems that is not working"
23 minutes ago

NC for Hire
SweetPotato replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"Phil, When you release the migration tool, will there be a way to migrate certain blog posts (by…"
41 minutes ago
Riccardo Rossini replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"Me too you can style it in chrome via CSS but not in FF. Thanks"
1 hour ago
Lady Panter favorited Rafael's group Ning Networks en español
5 hours ago
Dustin Craig replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"Thanks!"
6 hours ago
Dustin Craig replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"Let me send you a friend request so I can message you rather than take this thread more off-topic."
6 hours ago
Paul Corona replied to Suzie Nielsen's discussion 'Watching Cultivating videos- have questions!'
"So many folks were asking the same questions that I thought actually showing them the basics of the…"
7 hours ago
Chris replied to JFarrow's discussion 'Ning Emails Going to Spam?'
"Nope, had all the answers: "it's not a bug", "it is a bug and has been…"
8 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service