Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Is there any way to retain the bgcolor of a menu tab after you mouse out?
Old 12-08-2008, 06:11 PM Is there any way to retain the bgcolor of a menu tab after you mouse out?
Junior Talker

Posts: 2
Trades: 0
Is there any way using CSS to retain the background color of a menu tab after you move your mouse to the secondary menu? Is there a web state that corresponds to this?

I'm working on a new 2-level menu for our website and this has been a problem. I tried changing the javascript code, which took care of the problem, but it also incorporated a lot of the CSS into it, giving us less control over things (plus I'm more comfortable and/or familiar with CSS).

Here's a link to the test page:
http://newsroom2.stltoday.com/stltod...6?OpenDocument

I would also be open to adding (but not replacing) the existing JS code.

Any help, suggestions, etc would be appreciated... thanks!

Steve
stevemtno is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-08-2008, 08:22 PM Re: Is there any way to retain the bgcolor of a menu tab after you mouse out?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I typically use a class for this, such as "selected", and specify the background color that's the same as the mouse over.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-08-2008, 10:23 PM Re: Is there any way to retain the bgcolor of a menu tab after you mouse out?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I pretty much do the same thing.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Is there any way to retain the bgcolor of a menu tab after you mouse out?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.34310 seconds with 12 queries