I'm sure this should be quite simple, but I could find any solution for this problem. I have a table with a thead and a table caption (below the table) and I'd like to have the following behaviour:
So I've actually two questions
- How can I have a table header appear only at the beginning of the table, not on subsequent pages?
- How can I have a caption only at the end of the table, not repeated on subsequent pages?
I know that I could simulate this with divs for the table header and the caption together with a table that doesn't use thead and caption at all, but that violates the sematics of a table too much in my opinion.
And it wouldn't be easy since the HTML is generated by a Markdown processor.
Thanks!
Case 1 (table fits on one page, no problem here):
Table header (<thead>)
--------------------
Table row
Table row
Table row
Table row
--------------------
Table caption (<caption>)
Case 2 (same as case 1 but with a very long table with one or more page
breaks in the table, or table doesn't fit on the curent page):
Table header
--------------------
Table row
Table row
...
----------------------------------- <- page break
Table row
Table row
...
Table row
Table row
...
----------------------------------- <- page break
Table row
Table row
--------------------
Table caption
So I've actually two questions
- How can I have a table header appear only at the beginning of the table, not on subsequent pages?
- How can I have a caption only at the end of the table, not repeated on subsequent pages?
I know that I could simulate this with divs for the table header and the caption together with a table that doesn't use thead and caption at all, but that violates the sematics of a table too much in my opinion.
And it wouldn't be easy since the HTML is generated by a Markdown processor.
Thanks!