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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:12:35+00:00 2026-06-04T02:12:35+00:00

I am trying to achieve a simple table row hover effect by changing the

  • 0

I am trying to achieve a simple table row hover effect by changing the background colour of a row when a users hovers overs over it, that was simple enough:

tr:hover {
    background: red;
}

However I have noticed a bug in chrome where there is a small space between cells in a row where I lose the :hover and the <tr> flicks the style on/off as you move over it even though my mouse is still on the row.

I’ve tried border-collapse: collapse, cellspacing="0" but cannot see why I am losing the <tr> hover between cells, it only happens either side of cells, not above/below them. It works as expected in Firefox.

Here is a JSFiddle, in Chrome, try to slowly move your mouse from ‘first’ to ‘second’ and you will see there is a very thin point between them where the <tr> loses it’s hover background.

I have reported this as a Chromium bug here.

  • 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-06-04T02:12:37+00:00Added an answer on June 4, 2026 at 2:12 am

    I have no idea why this works, but setting the positioning on the <td> elements seems to fix this in Chrome.

    td {
        padding: 2px 5px;
        position:relative;
    }
    

    jsFiddle example.

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

Sidebar

Related Questions

This is what i'm trying to achieve: Home (Table View) > (Click on row)
I am trying to achieve a very simple goal, however it does not seem
Trying to achieve any moving effect while appending an element from one to another
I'm trying to achieve an effect similar with youtube home page (you must be
I'm trying to achieve something like this in LaTeX: http://sorenhaagerup.dk/files/table-sample.pdf (sample made in OpenOffice.org)
What I'm trying to achieve must be simple but I just can't get it
I am trying to make a simple input button center-align within a table cell.
im trying to achieve something but i dont really know how I have set
I am trying to achieve reading variables from a Java applet out of process
I am trying to achieve an LDAP query to gather all properties we have

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.