Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6779533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:23:46+00:00 2026-05-26T16:23:46+00:00

The code placed below I have a problem. When I hover on Menu Items

  • 0

The code placed below I have a problem.
When I hover on Menu Items departmentsHover class is not effect the menu Items.
The color and background image is not changed.

What must I do?

P.S I am using MS visual Studio 2010 and asp.net in the environment.

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .departmentsHover
        {
            color:Red;
            padding-left:4px;
            background-color:green;
                background-image:url("tile.jpg");
            width:150px;
        }
        .departments
        {
            color:Black;
            background-color:red;
            margin:2px;
            padding:4px;
            width:100px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>

    <asp:Menu ID="Menu1" runat="server"  >


        <Items>
            <asp:MenuItem Text="ada"></asp:MenuItem>
            <asp:MenuItem Text="ada"></asp:MenuItem>
            <asp:MenuItem Text="ada"></asp:MenuItem>
            <asp:MenuItem Text="ada"></asp:MenuItem>

        </Items>

        <StaticMenuItemStyle CssClass="departments"/>
        **<StaticHoverStyle  CssClass="departmentsHover"/>**

        <StaticMenuStyle CssClass="mainmenu" />

    </asp:Menu>

    </div>
    </form>
</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:23:47+00:00Added an answer on May 26, 2026 at 4:23 pm

    Why don’t you just use css hover

    .departments:hover
            {
                color:Red;
                padding-left:4px;
                background-color:green;
                    background-image:url("tile.jpg");
                width:150px;
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a curious problem in jQuery regarding order of execution. The code below
I have the code below in my test code in many places: // //
So my code is below. I'm not getting any errors and it places everything
Why is that Web Service files (.asmx) have their code-behind placed in app_code folder
I'm having kind of a dumb problem. I am using the below code to
Recursive function for copy of multilevel folder is not working. I have a code
I have the script below placed in the HEAD of the page. The map
I have a slight problem with creating a button on the server side code.
System info: Python 2.7.2 MAC OSX 10.7.2 Problem (+background): I have a large '.csv'
I have a problem while compiling my code ( undefined reference to 'yylex' ).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.