Twenty Ten CSS question

Here we will discuss about the wordpress general help and support.
  • Ads

Twenty Ten CSS question

Postby johnbernat » Thu Aug 05, 2010 1:11 am

In the Twenty Ten parent style.css, I see this:

#access li:hover > a,
#access ul ul :hover > a {
background: #333333;
color:#FFFFFF;
}

In the child theme I have made, I have commented out this:

/*background: #333333;*/

But still when I hover over any menu item, I see the black hover background: #333333;. How do I get rid of it?

I don't want to modify the parent style.css, because that will defeat the purpose of having created the child theme.

I have unsuccessfully tried to solve this for a long time now. I am not a dev, programmer or a geek. Please guide someone. Thanks.
johnbernat
Jr. Member
Jr. Member
 
Posts: 103
Joined: Fri Jul 30, 2010 12:42 am

Re: Twenty Ten CSS question

Postby jose » Thu Aug 05, 2010 1:12 am

You need to override the value as it's currently set..

So rather than commenting out the background portion (which basically leaves it as it's current black setting), set it to a new value, ie..

Set to white background.
#access li:hover > a,
#access ul ul :hover > a {
background: #fff;
}
Transparent
#access li:hover > a,
#access ul ul :hover > a {
background: transparent;
}
Hope that helps..
jose
Newbie
Newbie
 
Posts: 98
Joined: Fri Jul 30, 2010 12:47 am

Re: Twenty Ten CSS question

Postby johnbernat » Thu Aug 05, 2010 1:12 am

hank you Mark so much for your help.

background: transparent; overrides the current black value.

BUT, when point on the dropdown submenu, it disappears!

Please guide me so that the dropdown submenu does not disappear when I point on it. Thanks again.
johnbernat
Jr. Member
Jr. Member
 
Posts: 103
Joined: Fri Jul 30, 2010 12:42 am

Re: Twenty Ten CSS question

Postby jose » Thu Aug 05, 2010 1:13 am

The submenu problem is not caused by the above changes, that's a seperate problem.

Can you link to the site so i can see the issue?
jose
Newbie
Newbie
 
Posts: 98
Joined: Fri Jul 30, 2010 12:47 am

  • Ads

Return to Wordpress General Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron