Skip to main content
Solved

Scroll a table longer than the page with a border and sticky header


Stephanie11

Is it possible to have a table with a border and the rows scroll beyond the fold while the header is sticky? There should be additional space below the table as well.

I can get the space to show if the table doesn’t have a stroke but if it contains a stroke the bottom padding is below the last row but inside the stroke.

I’ve attached a mockup of what I’m trying to achieve.

Best answer by Vishal_Ramawat

Ok, I missed the overall border part, so here it is:
Created a Row component with side borders and a separator line.
Used it to create the Rows Frame.
Added a Header with side and top border and a separator line.
Page: Clip Content
Rows: Clip Content, Overflow: Vertical

Result:


View original
This topic has been closed for comments

3 replies

Shahid_Ali_khan

Yes, it is possible. Use CSS to set the table’s header as sticky with position: sticky; top: 0;. Apply a scrollable container with a fixed height for the rows using overflow-y: scroll;. Ensure to add padding below the table to create additional space, and adjust the border to encompass the entire table, including the padding.


Vishal_Ramawat

Ok, I missed the overall border part, so here it is:
Created a Row component with side borders and a separator line.
Used it to create the Rows Frame.
Added a Header with side and top border and a separator line.
Page: Clip Content
Rows: Clip Content, Overflow: Vertical

Result:



Stephanie11
  • Author
  • New Member
  • 1 reply
  • June 27, 2024

@Vishal_Ramawat That’s perfect - thank you!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings