79494556

Date: 2025-03-08 15:05:54
Score: 2.5
Natty:
Report link

Change z-index in table th to 4

TLDR,

I am new to StackOverflow, so this answer might be a bit weird.

The z-index for table th is set to 50.

Yet in JS the th rows have z-index reset to cell.style.zIndex = "5"; as in line 64

This causes a clash in z-indices.

A simple fix would be to set the z-index in table th to 4. This is less than the tbody td elements and yet is more than other th td preventing an overlap.

Also I would recommend instead to seperate the tables in 2 parts and scroll lock then together by setting javascript scrollTop to reduce complexity.

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • RegEx Blacklisted phrase (1.5): I am new
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rouvik Maji