CSSMenu Horizontal, I can't get active text to be white (SOLVED)

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
heatherfeuer

CSSMenu Horizontal, I can't get active text to be white (SOLVED)

Post by heatherfeuer »

So you'd think I would know how to solve this, seeing as how it's a design thing, but, hey! I don't know everything!  :D

I've decided that learning css, phase two is going to be making over my personal website.  I've got it set up on my development server and I'm trying to work with the horizontal CSSMenu.  I've got it styled pretty much exactly how I want it, except for one. #$@%#$%#$%. THING!  ??? :'( >:(

This particular style:
#primary-nav li.menuactive {
  background-color: #440062;
color: white !important;
}

Even though I've put !important, it still displays the color of the other main menu elements.  You can see it here:
http://heathersplace.selfip.net.  I'm hoping someone can help me while I've still got some hair left...  ;D
Last edited by heatherfeuer on Mon Mar 19, 2007 3:18 pm, edited 1 time in total.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: CSSMenu Horizontal, I can't get active text to be white

Post by Greg »

looks like '#primary-nav li.menuactive a' is set to #420060
Greg
heatherfeuer

Re: CSSMenu Horizontal, I can't get active text to be white

Post by heatherfeuer »

Actually, "#primary-nav a" has the #420060 color.  "#primary-nav li.menuactive" has the background set to #440062 with the text color set to white.  My problem is that "menuactive" is picking up the text color for "#primary-nav a" along with the rest of the primary nav elements.  When you hover over it, the white text shows up the way it's supposed to because the menu picks up the hover action of the main stylesheet.

I'm seriously considering going back the the simple right nav I originally had it at...
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: CSSMenu Horizontal, I can't get active text to be white

Post by kermit »

#primary-nav li.menuactive a{
  background-color: #440062;
color: white;
}

it's a link, needs to be styled as one, otherwise the text color defined in #primary-nav a is what will apply.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
heatherfeuer

Re: CSSMenu Horizontal, I can't get active text to be white

Post by heatherfeuer »

Kermit,

THANKS!! :-*  I just knew it was something painfully obvious!  Jeez...

By the way, my husband would like to be in line to "kill Bill."  Between the two of us we have four (yes 4) computers.  Two of them (including mine) are strictly Windows (2k Pro on one and XP on mine).  Hubby's and another are dual boot between windows and Linux while he is learning Linux (Ubuntu).  At some point I'd like to learn enough to have a better idea of how to run a good webserver.

We have a long-running joke that Bill evilly devised a very special bug called FWB (for F*** With Brad)!!  And it doesn't just affect software, it can also affect hardware...  :D  :o  ;)
Last edited by heatherfeuer on Mon Mar 19, 2007 3:17 pm, edited 1 time in total.
Locked

Return to “Layout and Design (CSS & HTML)”