My goal is to create a table with a fixed size that can be horizontally scrolled. I applied overflow-x: auto;
, but only a part of the table is scrolling while the start of the table is off the screen. I am unable to provide the code, so I've added a sample image for clarity (link: https://i.sstatic.net/zMEUW.png).
The green part of the table can be scrolled normally, but the scrollbar reaches the end of the red part. When I zoom out or add margin, the issue is resolved temporarily, but that is not an ideal solution. The table is within a flex container, but no additional styles have been applied.
Any insights or solutions would be greatly appreciated. Thank you.