Jump to content

selected menu font color issue


xcoderx

Recommended Posts

hey guys why is the font color not changing in the selected menu class? where am i goin wrong? it is showing the active link color but not the one i want it to show. hover is goin ok

 

#menu ul li a {

display: block;

float: left;

height: 30px;

width: 70px;

margin-right: 1px;

text-decoration: none;

font-size: 1.1em;

font-weight: bold;

color: #7BE0A9;

padding-top: 15px;

        text-align: center;

}

 

#menu li a:hover {

color:#1478CB;

background: url(images/menu_h.gif) repeat-x;

}

 

#menu li.selected{

background: url(images/menu_s.gif) repeat-x;

font-weight:bold;

color:#1478CB;

}

Link to comment
Share on other sites

You have a higher specificity on the initial <a> tag declaration that you do on the .selected declaration, so the .selected declaration will never work. Change it from this:

 

#menu li.selected{

to this

#menu ul li.selected a{

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.