Hi,
thanks for your post, and sorry for the trouble.
I’m not really sure what you mean. The scroll mode of the Responsive Tables Extension from https://tablepress.org/extensions/responsive-tables/ does just that.
Regards,
Tobias
Hi,
Thanks for the follow-up. When I set
[table id=2 responsive=scroll]
I see a scroll bar when viewing the table on a desktop. But on a desktop, the table doesn’t need a scroll bar. In fact, even though the scroll bar is displayed, it’s not possible to scroll it. It looks like this.
What I really need is to have it scroll only on phones like this:
[table id=2 responsive=scroll responsive_breakpoint=phone /]
but that’s not available.
Hi,
thanks for your question, and sorry for the trouble.
I’m afraid that’s not easily possible. Also, you should only see that scrollbar in Internet Explorer on the desktop. All other browsers should hide it, as the table is not scrollable.
To work around that, you could maybe play with CSS3 Media Queries, and e.g. add some “Custom CSS” like
@media (min-width: 1000px) {
.tablepress-scroll-wrapper {
overflow-x: visible;
}
}
Regards,
Tobias
OK. Thanks for your help. I’ll play around with the CSS.
I’m seeing the scroll bar in Chrome, by the way. That’s where the screenshot came from.
Hi,
hhm, that’s strange. Then, the CSS approach should be the best way to proceed here.
Regards,
Tobias