Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-15-2012, 12:20 AM   PM User | #1
mfox
New to the CF scene

 
Join Date: Sep 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
mfox is an unknown quantity at this point
CSS Dropdown menu bar problems

Dear CodingForums members,

I would be very grateful for your help on my menu bar problems, live example @

http://goo.gl/WzDI8

The first problem: Submenu dropdown for Item 2.
It works ok in Firefox and Chrome, but is temperamental in IE. Sometimes it drops down in IE, and other times it doesn't, and really depends on how fast I roll over the mouse or where I start the rollover. I know the problem is related to my top/bottom padding, and as you can see I have a hover style which doesn't fill up the entire height of the bar. How can I keep the same style, while resolving the rollover problem with IE.

The Second problem: Font color of submenu items.
It ends up being the same color as the parent/main menu in hover(state) white, but I wish it to be grey and then go to white when in the hover state.

I am very grateful your expert opinion.
Thank you
MFox

Last edited by mfox; 09-16-2012 at 11:59 AM..
mfox is offline   Reply With Quote
Old 09-15-2012, 02:24 AM   PM User | #2
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
Quote:
Originally Posted by mfox View Post
The Second problem: Font color of submenu items.
It ends up being the same color as the parent/main menu in hover(state) white, but I wish it to be grey and then go to white when in the hover state.
Yeah, when the <li> is hovered, all of the <a> tags within it are changed to white.
You can have it only effect the <a>'s directly after the <li> by using the ">" selector.

On line 54 of base.css:

Code:
#navbar li:hover > a {
    color: white;
}
--------------------------

EDIT: jk, no easy way to fix the first problem.

Last edited by Sammy12; 09-15-2012 at 04:05 AM..
Sammy12 is offline   Reply With Quote
Users who have thanked Sammy12 for this post:
mfox (09-15-2012)
Old 09-15-2012, 02:28 AM   PM User | #3
mfox
New to the CF scene

 
Join Date: Sep 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
mfox is an unknown quantity at this point
Sammy - Many thanks for your problem solving.
I am most grateful.

I'll await to see if anyone else can help with the first problem

Last edited by mfox; 09-15-2012 at 06:09 AM..
mfox is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:48 AM.


Advertisement
Log in to turn off these ads.