I have a very large HTML table (which can be dynamic i.e. no of rows and columns are not fixed) that I need to print. Clearly, the rows that dont fit in the same page will be printed on the next page. But I also want all the columns that dont fit in the same page to be printed in another page. I researched for quite a time but I couldnt find any way to perform that without applying an empirical logic. Right now, I am opting to print a pre-defined number of columns in a page.
Can the CSS properties page-break-after
or page-break-before
to achieve something like that? If so, how?