SteveMott Posted January 27, 2023 Report Share Posted January 27, 2023 Hi I have implemented my Caspio app using the embed method. My page has a header & footer in place and the result is this: When I scroll the table the header scrolls up and I lose sight of the header block: Is it possible to freeze the header block (not the table header) so that it always displays? Thanks Steve Quote Link to comment Share on other sites More sharing options...
0 autonumber Posted February 2, 2023 Report Share Posted February 2, 2023 Hi @SteveMott - can you confirm if the header block that you are referring to is the PHARMA ADVISOR menu at the top? If yes and if this is located on the header of your DataPage in Caspio, you can try to paste this code on the header as well but make sure to click the 'Source' button before pasting this code: <style> header{ position: sticky !important; top: 0 !important; z-index: 1; } </style> But if this will not work, can u send the URL to your page so we can try to check? Tubby 1 Quote Link to comment Share on other sites More sharing options...
0 SteveMott Posted February 4, 2023 Author Report Share Posted February 4, 2023 Thanks autonumber. Just got your reply. Will try tomorrow (I'm on UK time!) The header is in the datapage Header. Thanks Steve Quote Link to comment Share on other sites More sharing options...
0 SteveMott Posted February 5, 2023 Author Report Share Posted February 5, 2023 Hi autonumber I couldn't get the code to work but, inspired by your comments, have fixed the problem by moving the header code to my HTML Web page! Once again, many thanks. Steve Quote Link to comment Share on other sites More sharing options...
0 SteveMott Posted February 5, 2023 Author Report Share Posted February 5, 2023 Hi autonumber I tried your code again and it worked! The header is a table so I added your code into the <table... statement and ... success. Many thanks Steve Quote Link to comment Share on other sites More sharing options...
0 Kronos Posted February 15, 2023 Report Share Posted February 15, 2023 Hi, leaving this here just in case you want to have a sticky header on a Calendar DataPage: <style> nav.cbResultSetCalendarStickyHeader { position: sticky !important; top:0; } body { margin-top: 0px; } </style> Quote Link to comment Share on other sites More sharing options...
0 NailDyanC Posted February 18, 2023 Report Share Posted February 18, 2023 Just want to add, you may also try this workaround if it will work for you: ttps://howto.caspio.com/datapages/reports/fixed-rows-and-columns/ Quote Link to comment Share on other sites More sharing options...
0 PotatoMato Posted June 9 Report Share Posted June 9 Hi! Just to update, Caspio has added a solution to have a sticky header on responsive datapages: https://howto.caspio.com/tech-tips-and-articles/enabling-sticky-headers-in-responsive-tabular-reports/ Quote Link to comment Share on other sites More sharing options...
Question
SteveMott
Hi
I have implemented my Caspio app using the embed method. My page has a header & footer in place and the result is this:
When I scroll the table the header scrolls up and I lose sight of the header block:
Is it possible to freeze the header block (not the table header) so that it always displays?
Thanks
Steve
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.