I am encountering an issue with an html file that contains a table. The table has one row element with the css property of position: sticky, while the other rows are just example rows with "some text" in each cell.
Within column 5 of the regular rows, I have added a purple tag to each cell, as shown in the first picture. Despite setting the z-index to 3 for the first row, the purple tag is still visible at the border of the table, as seen in the second picture.
I have tried various solutions to address this issue:
- Adjusting the numbers of the z-index property and adding lower z-indexes for related elements
- Using .stickyth instead of .stickyth th in the style tag
- Adding additional div tags within the first row and the purple tag
Unfortunately, none of these attempts have been successful in achieving the desired result. How can I ensure that the purple tag appears under the table border of the first row?