[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to I keep this menu option active?

Posted on 2013-06-27
7
Medium Priority
?
338 Views
Last Modified: 2013-06-27
I have a site here:

http://haskris.com/site/

When you hover over a menu option that has a drop down (for example "Products") it changes to a purple background. However, when you move down to the dropdown the Products purple background goes away.

How do I keep it active like in the attached graphic?
ss.jpg
0
Comment
Question by:Donnie Walker
  • 3
  • 3
7 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39282154
How do I keep it active like in the attached graphic?

You could start by addressing the 128 errors reported by the HTML validator:

http://validator.w3.org/check?uri=http%3A%2F%2Fhaskris.com%2Fsite%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

Once you have a valid structure it might work as expected, and if not we will at least have some idea of how the browser is applying the CSS rules to the structure.

Cd&
0
 

Author Comment

by:Donnie Walker
ID: 39282170
that does not answer my question.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39282195
The issue is structural.  The CSS rules have to cascade down through the structure and the structure is invalid.  Therefore there is no definitive answer; though there may be some guesses or possibly a hack to further damage the structure.

So upgrade the quality of the code and we can do it right, or you can wait for someone to find a hack for you.

Cd&
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:Donnie Walker
ID: 39282201
please move along.
0
 
LVL 44

Accepted Solution

by:
Chris Stanyon earned 2000 total points
ID: 39282433
Hehe - how to win friends and influence people :)

Try something like this:

#mainmenu li.sfHover > a {
    background-color: #41005C;
    border-radius: 10px 10px 0 0;
    color: #FFFFFF;
}

Open in new window

FYI - Advising you to fix invalid code is a valid answer when you ask for help! You'd be amazed and how many problems are 'magically' fixed when your code validates...
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39282483
how to win friends and influence people

I just consider the source.  Anyone not professional enough to address errors in their code does not have any opinion I consider worth processing, and there are more productive things I can be doing.

Cd&
0
 

Author Closing Comment

by:Donnie Walker
ID: 39282493
and yet your "hack" solved the problem. Thanks!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
Suggested Courses
Course of the Month19 days, 21 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question