I have searched and viewed so many similar questions but can not solve this issue yet . I've tried page-break-before: always;
but seems it doesn't work neither ff nor chrome . all suggestions are welcome
Asked
Active
Viewed 128 times
2

peter
- 112
- 1
- 8
-
what is the problem exactly? – Nikos M. Aug 24 '15 at 17:39
-
@NikosM i want to repeat thead on sebsequent pages and tried page-break-befor and page-break-afer in my css , but it doesn't work – peter Aug 24 '15 at 17:42
-
still not clear repeat `thead` on pages?? can you add an example? – Nikos M. Aug 24 '15 at 17:45
-
as i said , i want to repeat `thead` of table on subsequent pages when i wanna `print` page . in print preview and print result , i need headers repeating on page breaks; – peter Aug 24 '15 at 17:49
-
want to make table header fixed? can be done but not on subsequent pages – Nikos M. Aug 24 '15 at 17:51
-
for only css solution you will need to add extra headers and show/hide them on pages (with extra css used only for printing, `media=print`) – Nikos M. Aug 24 '15 at 17:52
-
how can i count number of pages in print preview to add headers ? – peter Aug 24 '15 at 17:56
-
yeap i dont think its doable with css only, you could try to add headers not shown and display them only on page breaks, but it might not work – Nikos M. Aug 24 '15 at 17:58