funbinod Posted June 15, 2018 Share Posted June 15, 2018 hello all! i was trying to set page break while printing my html page after every 4 table rows. can anyone guide me??? thanks in advance. Link to comment Share on other sites More sharing options...
Ingolme Posted June 15, 2018 Share Posted June 15, 2018 To add a page break, use the page-break-after rule. To select every fourth row, use the :nth-child selector with the formula 4n Link to comment Share on other sites More sharing options...
funbinod Posted June 18, 2018 Author Share Posted June 18, 2018 tr:nth-child(4n) {page-break-after: always;} this didnot work as expected Link to comment Share on other sites More sharing options...
dsonesuk Posted June 18, 2018 Share Posted June 18, 2018 Try these solutions https://stackoverflow.com/questions/1763639/how-to-deal-with-page-breaks-when-printing-a-large-html-table Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now