Hey Kriesi team,
I have some fairly large tables that I’ve coded with HTML and placed into code blocks. On mobile, these tables get cut off and appear to go off the screen. Is it possible to assign a horizontal scroll class to these, so they’d work similarly to how the scrolling table setting works within the Avia Layout Builder tables?
What I’m describing can be seen here: https://bardac.com/dc-drives/pl-series/#4quad
I use code blocks on nearly every page of my site and would prefer not ALL code blocks become scrollable…just those with tables.
Thanks!
– Julian
Hey FloppySocks,+
Thank you for using Enfold.
Add this css code to make the tables scrollable.
.avia_codeblock_section, .avia_codeblock_section table {
overflow-x: scroll;
width: 100%;
}
Best regards,
Ismael
Thanks very much Ismael, and sorry for the simple request. I was also able to get decent results as well by creating a div around the table.
<div style="overflow-x:auto;”>
</div>
As always, thanks for your time. Please close the thread!
Hi FloppySocks,
Glad that Ismael helped you :)
Feel free to comeback if you need further assistance.
Thanks for using Enfold and have a great day!
Best regards,
Nikko