I have a table within a DIV macro that applies coding and CSS styling. As part of this it allows the table headings to stick to the page, but functionality stops as soon as the table is placed within any page layout.
The table is a Confluence Table and not one generated via HTML.
The reason the div scripting is in place is to provide search functionality across the table or to specified columns depending on the use case.
I'm guessing there is an overflow: hidden lurking in one of the layout associated CSS classes, I just can't see to spot which one.
Welcome to Atlassian Community. It's nice to meet you.
Concerning the sticky headings, Confluence table headings are sticky by default. Have a look at Confluence Tables > Sticky table headers in view mode for more details:
Sticky table headers in view mode
In some instances table header rows will stick to the top when you're viewing a page, making those really long tables easier to read. There are a few exceptions, though. Table headers aren't sticky when your table:
Is inside a page layout, inside another table, or inside a macro.
Has no header row or there are cells in the top row that aren't marked as headers.
Has a header column, instead of a header row, and scrolls horizontally.
Contains another table, that has its own header row.
In addition, there's an add-on Table Filter and Charts for Confluence that can help with this.
Besides the sticky headings, is your CSS styling not working? Could you show us what you're trying to do with the styling and the code that you've used so far? It will also help if you let us know your Confluence version.
- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events