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

  • Home
  • SEARCH
  • 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 3334214
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:52:49+00:00 2026-05-17T23:52:49+00:00

The hover rules are not being applied. When I view in firebug it doesn’t

  • 0

The hover rules are not being applied. When I view in firebug it doesn’t seam to load the rule at all.

What is the correct way to implement the hover below?\

The html markup is:

<li class="ui-menu-item" role="menuitem"><a target="_blank" title="Click here" href="http://........" class="ui-corner-all" tabindex="-1">
<span class="apptitle">Some Text here</span>
<br>
<span class="descrip">Some Description</span>
</a>
<a target="_blank" href="http://......" class="ui-corner-all" tabindex="-1"><img src="someimg.gif">Please click here for support</a>     
<hr align="center" width="80%"></li>

Thanks

* html .ui-autocomplete {
width: 400px;
height: 200px;
}
.apptitle, .apptitle a, .apptitle a:active, .apptitle a:visited {
color: #0080FF;
font-weight: bold;

}
 .apptitle a:hover{
text-decoration: underline; 
}
.title {
text-align: left;
}
.descrip, .descrip a, .descrip a:active, .descrip a:visited {
padding-left: 10px;
padding-top: 10px;
text-align: left;
color: #000000
}
.descrip a:hover{
 color: #FF6600
}
  • 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-17T23:52:50+00:00Added an answer on May 17, 2026 at 11:52 pm

    Rewriting your codes for sake of simplicity first.

    HTML

    <li class="ui-menu-item" role="menuitem">
        <a href="xxx" class="ui-corner-all">
            <span class="apptitle">Some Text here</span>
            <br>
            <span class="descrip">Some Description</span>
        </a>
        <a href="yyy" class="ui-corner-all" tabindex="-1">
            <img src="someimg.gif">
            Please click here for support
        </a>
        <hr align="center" width="80%">
    </li>
    

    CSS

    * html .ui-autocomplete {width: 400px; height: 200px;}
    
    .apptitle, .apptitle a, .apptitle a:active, .apptitle a:visited {
    color: #0080FF;font-weight: bold;
    }
     .apptitle a:hover {text-decoration: underline;}
    
    .title {text-align: left;}
    
    .descrip, .descrip a, .descrip a:active, .descrip a:visited {
    padding: 10px 0px 0px 10px; text-align: left; color: #000000
    }
    
    .descrip a:hover {color: #FF6600;}
    

    OK, now we can analyze it.

    For your hovers, you are using:

    .apptitle a:hover {}
    .descrip a:hover {}
    

    However, in the HTML structure we see the apptitle is a span inside a link, and without any inside it, thus the rule will not work.

    You can use

    .apptitle:hover
    

    directly, fetching the hover on span tag. This works well with all major browsers, expect IE6, and dunno about IE7. IE8+ works fine.

    Or alternatively you can use:

    a:hover .apptitle {}
    

    This ensure the rules will apply only to span at link hover.

    In a last word: the problem was in your selectors. Hope you enjoy the solutions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The hover joke in #505 xkcd touts I call rule 34 on Wolfram's Rule
What is the simplest and most elegant way to simulate the hover pseudo-class for
You will notice the :hover CSS for the links in the main nav area
I used jQuery to set hover callbacks for elements on my page. I'm now
I used the method $(#dvTheatres a).hover(function (){ $(this).css(text-decoration, underline); },function(){ $(this).css(text-decoration, none); } );
Anyone know how to style the header hover color of a WPF ListView? Thanks!
I would like to delay a hover event in jquery. I am reading from
Given the following code,the hover function works correctly, but when clicked, loses the clicked_no_event_box
I have a draggable div element with a hover style. This works fine, but
I am working with: #top ul li.corner span.right-corner:hover { background-image:url(images/corner-right-over.gif); width:4px; height:15px; float:left; }

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.