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

The Archive Base Latest Questions

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

I am trying to achieve a hover effect on a table row and I

  • 0

I am trying to achieve a hover effect on a table row and I have the following code on my css.

.datatable tr.row:hover, .datatable tr.altrow:hover {
    color: #000;
    background-color: #FFFACD;
    background-image: url(../Images/bullet.gif);
    background-repeat: no-repeat;
}

But I do not see that being applied at all. My questions are

  1. Why is it not working?
  2. How to correct this?

For clarity here is the fiddle http://jsfiddle.net/naveen/UPhRE/
Please don’t mind the images inside the css. All is well there.

  • 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:39:35+00:00Added an answer on May 24, 2026 at 6:39 am

    You are setting backgrounds on the individual table cells (td), which is rendered on top of the tr.

    If you have two choices:

    1) Move all row background styling to the trs.

    2) Update your CSS to look like this:

    .datatable tr.row:hover td, .datatable tr.altrow:hover td {
        color: #000;
        background-color: #FFFACD;
        background-image: url(../Images/bullet.gif);
        background-repeat: no-repeat;
    }
    

    This will render the color on the row:
    http://jsfiddle.net/R9YGw/3/

    Update: Included update for image on first cell only:

    .datatable tr.row:hover td, .datatable tr.altrow:hover td {
        color: #000;
        background-color: #FFFACD;
    }
    .datatable tr.row:hover td:first-child, .datatable tr.altrow:hover td:first-child {
        background-image: url(../Images/bullet.gif);
        background-repeat: no-repeat;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following jQuery code $(#dropdown).hover(function() { $(this).stop(true,true).fadeTo('fast',1); $(#options).stop(true,true).slideDown(); }, function() { $(this).delay(1000).stop(true,true).fadeTo('fast',0.1);
im trying to achieve the following, in php i have a form like this:
The CSS code: .css3_nudge ul li a { -webkit-transition-property: color, background-color, padding-left, border-right; -webkit-transition-duration:
Im trying to achieve the following: A certain page will have a series of
I have the following code: var shadow = #FF00FF 0 50px 90px inset; $('#element').find('a.thumbnail').hover(function()
I have been trying to achieve a two-column layout with CSS where the left
Im trying to achieve a nice fade to color effect when you mouse over
I am trying to achieve the same behavior as indicated in the following post.
I'm trying to achieve something like you have in the back end of Wordpress
I'm trying to achieve a menu where you can hover the first level and

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.