I've seen many other similar questions but they all concern a single table.
I have a page with 3 different tables on it with similar headings, inside a relative div, with overflow being scrollable.
I split each table into 2 tables - one for the headings and one for the dynamic content, setting the heading table as position:fixed.
When I scroll down inside the div, it works fine, but when I scroll the page down to see the next table, the page scrolls down but the table headings remain fixed in relation to the page.
I want them to move up with their container relative div.
How can I do this?