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 7024141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:48:06+00:00 2026-05-27T23:48:06+00:00

I was digging some css codes written by someone and I found this: li.hover,

  • 0

I was digging some css codes written by someone and I found this:

li.hover, li:hover {

}

Is there any difference between .hover and :hover?
Maybe some browsers act differently for hover?!

  • 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-27T23:48:07+00:00Added an answer on May 27, 2026 at 11:48 pm

    :hover is a psuedo-class while .hover is a selector for the class hover. These symbols (: and .) don’t change meaning from any other CSS selector construct: see the W3C CSS Level 3 Recommendation for all the details.

    Presumably there is some JavaScript to toggle the hover class, perhaps because of lack of :hover support for LI elements in a “legacy” browser. I know that IE5/6 (ick!) only supported :hover for links, however:

    • “Modern” GUI browsers correctly support :hover.

    (And, as always, make sure the page is not in “quirksmode” 🙂

    Happy coding.

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

Sidebar

Related Questions

After some digging around on SO I found this as the best response for
I've been digging through some parts of the Linux kernel, and found calls like
After some digging around with the Wordpress XML-RPC documentation , it seems that there
Not sure if this has been asked before, did some digging. I'm trying to
I did some digging and I understand that the array means there are multiple
I did some digging around about this, but nothing really seems to answer my
I was digging through some code, and I found some calls to mySQL_fetch_array .
I have done some digging through perldoc and the O'Reilly books but haven't found
I'm just digging into the gcc manual and some things are still unclear to
I've been really digging into LINQ, and I'm trying to hash out this lambda

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.