Jump to content

table freeze top row and first column

Recommended Posts

Site URL: https://www.waileage.org/test

I have attempted to freeze the top row and first column in the table generated from javascript. I have tried editing the css and javascript to force the top row and first column not to scroll, but without success. I looked through the forum, but couldn't find anything related to the problem I am encountering. Any suggestions would be greatly appreciated. Thanks.

Link to comment
  • Replies 2
  • Views 179
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

1 hour ago, JamesJ said:

Site URL: https://www.waileage.org/test

I have attempted to freeze the top row and first column in the table generated from javascript. I have tried editing the css and javascript to force the top row and first column not to scroll, but without success. I looked through the forum, but couldn't find anything related to the problem I am encountering. Any suggestions would be greatly appreciated. Thanks.

You can try

#block-yui_3_17_2_1_1653416757427_3075 thead {
  position: sticky;
  top: 0;
}

#block-yui_3_17_2_1_1653416757427_3075 tbody tr td:first-child {
  position: sticky;
  left: 0;
}

Hope it makes sense

Edited by bangank36

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.