Scroll bar on table view

By: Jon Stu | Asked: 08/18/2023
ForumsCategory: General questionsScroll bar on table view
Jon Stu asked 11 months ago
I have a simple table view. Is it possible to add a vertical scroll at the side, but keeping the column titles in view. I tried the infinate scroll in advanced section but this didn't seem to work. I have also tried adding: <div style="overflow-y:auto;"> to the before section of the view. But this didn't work.  
 
1 Answers
Victor Font answered 11 months ago
You may need to apply the overflow to the table body element, not the div. See this example: https://stackoverflow.com/questions/17067294/html-table-with-100-width-with-vertical-scroll-inside-tbody
Jon Stu replied 11 months ago

Sorry I'm a newbie, where would one find the table body element?

Victor Font replied 11 months ago

If you created a table view, you would have had to add it to your HTML. You're writing the table code.

Jon Stu replied 11 months ago

Thanks for your reply.
So do you mean when I add the view to the page. I then add html there. So not when I am creating the view in formidable forms. Sorry I am a non-coder, so its difficult understanding this.

Victor Font replied 11 months ago

You said you were using a table view, right? Table views are built with the standard HTML table structure. You can add a CSS script that adds the scroll to your tbody element in the before fields area on the view build screen.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right