Currently, I am working on a project where I have designed a page layout consisting of a header and a table. My goal is to create a fixed top row in the table as well as a fixed left column when scrolling horizontally. While I have successfully implemented vertical scrolling with a fixed top row, I am facing some challenges with the horizontal scroll bar (although the leftmost column remains fixed).
I have included the code that I have developed so far:
However, my current issues are as follows:
- The absence of a horizontal scrollbar at the bottom of the window. The scrollbar should always be visible at the bottom of the window rather than the bottom of the page.
- The last row of the table gets cut off due to the horizontal scrollbar, but I want the scrollbar to remain at the bottom of the window for constant visibility.
This project is being developed using React and Tailwind CSS. I would greatly appreciate any guidance or solutions on how to address these challenges. Thank you in advance.