Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Table block – Add horizontal scroll bar for mobile devices

Home / Forums / Kadence Blocks / Table block – Add horizontal scroll bar for mobile devices

This topic is: Resolved
[Resolved]
Posted in: Kadence Blocks
December 8, 2021 at 7:30 am

Hello,

When using the table block is there a way to add horizontal scroll bar for mobile devices? As it is now the table is too narrow when viewed on mobiles. I have tried to achieve this by adding a class to the table block and used the following css

.mytable {
display: block;
overflow-x: auto;
white-space: nowrap;
}

This doesn’t quite work though as the table content is still squashed together. I want each column to be as wide as it’s contents, and any columns that don’t fit on the screen to be scrollable. Is there any way to do this?

Thank you. 🙂

  • The forum ‘Kadence Blocks’ is closed to new topics and replies.