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

Posted on 2009-05-01
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).

Question by:DanGettel
    1 Comment
    LVL 16

    Accepted Solution

    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


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
    Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
    In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
    In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at Browse or search based on font properties or name to find a suitable font for…

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now