Coding⏱️ 2 min read📅 2026-06-03

How to Fix: Change cursor to hand when mouse goes over a row in table

Change cursor to hand when mouse goes over a row in table

Quick Answer: Use CSS to target the element and set its cursor style to 'pointer'.

To change the cursor to a hand when your mouse goes over a row in a table, you need to add a CSS rule that targets the <tr> elements and sets the cursor property to 'hand' on hover.

✅ Best Solutions to Fix It

Method 1: CSS Rule

  1. Step 1: Add the following CSS rule to your stylesheet:
<style>table tr:hover { cursor: hand; }</style>

Apply the Rule

  1. Step 2: Save and refresh your webpage to see the new cursor behavior.

By adding this simple CSS rule, you can change the cursor to a hand when your mouse hovers over a row in your table.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions