I'm in the process of designing a new Wordpress theme and am faced with the challenge of revamping the existing tables within the site's content. While most of my alterations to the table have been successful, I'm encountering an issue when trying to make the table horizontally scrollable on mobile devices by adding 'overflow-x: auto' to its container div. Currently, the table adjusts its width according to the viewport size, but once it reaches its minimum width, it remains fixed and causes the entire page to become scrollable.
Despite researching similar queries on stackoverflow, none of the solutions seem to be effective for me. I've enclosed the table within a div container and applied 'overflow-x: auto', but it doesn't produce the desired effect.
EDIT: Interestingly, the code snippet works correctly on StackOverflow, but fails to function on my Wordpress website. Could this be a compatibility issue with Wordpress?
EDIT 2: Even after installing a table plugin, the problem persists. The plugin creator mentioned that the root cause may lie in my usage of CSS Grid's 'grid-column' property, as the table parent is not responsive. This was something I hadn't considered previously, hence it wasn't included in my code initially. I've made the necessary adjustments to reflect my use of CSS Grid, but the issue still persists as displayed in the StackOverflow code snippet.