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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:44:08+00:00 2026-05-15T06:44:08+00:00

Currently, when I create a table, and I mouseover a cell, that entire row

  • 0

Currently, when I create a table, and I mouseover a cell, that entire row is highlighted. I’m trying to make it so that it is only the immediate cell. Here’s all the CSS code that pertains to tables in my stylesheet:

table{margin:.5em 0 1em;}
table td,table th{text-align:center;border-right:1px solid #fff;padding:.4em .8em;}
table th{background-color:#5e5e5e;color:#fff;text-transform:uppercase;font-weight:bold;border-  bottom:1px solid #e8e1c8;}
table td{background-color:#eee;}
table th a{color:#d6f325;}
table th a:hover{color:#fff;}
table tr.even td{background-color:#ddd;}
table tr:hover td{background-color:#fff;}

table.nostyle td,table.nostyle th,table.nostyle tr.even td,table.nostyle tr:hover td{border:0;background:none;background-color:transparent;}

I know it’s probably a simple fix but I can’t find where to make it work. Everything I try just kills the mouseover effect entirely rather than making it the way I want it.

  • 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-15T06:44:09+00:00Added an answer on May 15, 2026 at 6:44 am

    Change

    table tr:hover td{background-color:#fff;}
    

    To

    table td:hover <strike>td</strike>{background-color:#fff;}
    

    This should highlight the cell and not the whole row.

    Update tr:hover was mentioned twice. Also it should be td:hover, not td:hover td. This should work:

    table{margin:.5em 0 1em;}
    table td,table th{text-align:center;border-right:1px solid #fff;padding:.4em .8em;}
    table th{background-color:#5e5e5e;color:#fff;text-transform:uppercase;font-weight:bold;border-  bottom:1px solid #e8e1c8;}
    table td{background-color:#eee;}
    table th a{color:#d6f325;}
    table th a:hover{color:#fff;}
    table tr.even td{background-color:#ddd;}
    table td:hover {background-color:#fff;}
    
    table.nostyle td,table.nostyle th,table.nostyle tr.even td,table.nostyle td{border:0;background:none;background-color:transparent;}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently trying to create a kernel module that will produce data based on
I'm currently trying to dynamically create a table using JS and HTML. But at
I'm currently trying to make a self referencing table in MySQL, however it seems
create or replace procedure createtables Authid current_user as begin execute immediate 'create table newcustomer
i'm working with a multi-threaded program (using pthreads) that currently create a background thread
I am currently trying to create a win32 service using pywin32. My main point
I currently create a Repository for each database table and a corresponding data class
I currently have a closure table used for hierarchical data that has 5 million
The table is currently this: CREATE TABLE `feed_items` ( `id` int(11) unsigned NOT NULL
I currently have database setup like so: CREATE TABLE `article` ( `id` int(11) NOT

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.