Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

I just did a quick search, so I don't claim to be an expert. The two main methods seem to be thead/tfoot and position:fixed. I didn't mean to imply that this are smarter/better, but they might be easier in certain conditions.


Oh, I see, thanks. I did figure out that thead automatically repeats across pages, but I also had to repeat other stuff outside the table, like letterhead.

I also made this sample file that shows thead repeating, but since it's a single continuous table it doesn't preview very well and spills out of the 8.5x11 article element. I'm not sure how I would take advantage of the browser's automatic thead/tfoot repeat while also accurately previewing the result in the browser, especially with more elements below the table.

https://voussoir.net/writing/css_for_printing/sample_longtab...

But I'm open to suggestions that would spare me from splitting the table after a height threshold!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: