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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:47:23+00:00 2026-05-24T06:47:23+00:00

Can you have a look at my code and please tell me why the

  • 0

Can you have a look at my code and please tell me why the hover is not working, thanks!

<style>
 #moreDiscussHome:hover{
           background-color: #ffffff;
}

</style>
<a id="moreDiscussHome" style="color:#f1f7f8;background-color:#12a1b7;" href="">more discussions</a>
  • 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-24T06:47:23+00:00Added an answer on May 24, 2026 at 6:47 am

    Well, as soon as display: none; is applied, you are no longer hovering the element because it is not there, so it will basically flicker constantly or do nothing.

    Try opacity* instead perhaps:

    #moreDiscussHome:hover {
        opcaity: 0;
    }
    

    Note that the element still retains it’s space in the layout with this, which may not be what you want… but I’m honestly not sure what you’re trying to achieve with this.

    Side note: There’s no reason not to move those other inline styles to a stylesheet.

    This doesn’t work: #moreDiscussHome:hover{ background-color: #ffffff; }

    EDIT: I strongly urge you to move all inline styles to a CSS file. If for no other reason, to avoid some of the issues you already seem to be having with trying to apply background colors. A shortcut might seem easier at the time, but as the saying goes: “Shortcuts make for long delays”. (In other words, don’t do it)

    * visibility:hidden will respond to :hover the same as display:none, so it won’t work either. Thanks to thirtydot for the tip.

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

Sidebar

Related Questions

have a look at this code please: public void BindElements<T>(IEnumerable<T> dataObjects) { Paragraph para
Please look at the following code and tell me if it's going to cause
Let's look at an example - books. A book can have 1..n authors. An
I have to look into solutions for providing a MySQL database that can handle
Apologies if this was already asked but, I have had a look and can't
I would like to have a QMainWindow that can change it's look at runtime,
I have a variable in code that can have file path or url as
Can you please tell me if there is a way I can find number
EDIT: Solution in code can be found on bottom. I am not sure if
Have a look at the following code snippet... File1.h void somefunc(int); File1.c #include File1.h

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.