?
Solved

How to style static level of asp menu control when dynamic menu expanded and hovering over sub menu items?

Posted on 2009-05-01
2
Medium Priority
?
721 Views
Last Modified: 2012-05-06
How can I style the static level of asp menu control when the dynamic menu is expanded and user is hovering over sub menu items? More specifically, I am interested in the BackColor and ForeColor of the parent item for the sub menu (not all of the static menu items).

0
Comment
Question by:DanGettel
1 Comment
 
LVL 16

Accepted Solution

by:
hankknight earned 2000 total points
ID: 24281704
To make the BackColor red and the ForeColor yellow:

Place the code for the menu in a div with a class:
   <div class="menuClass">Place Menu Here</a>

And place the following css in the <head> section of your html
.menuClass * {
background: red;
color: yellow
}

Open in new window

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

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month16 days, 15 hours left to enroll

864 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