| How do I put page breaks in a web page? |
| User Opinions |
|
No users have voted.
|
|
Thank you for rating this answer.
|
Thanks to cascading style sheets, it is possible to give modern web browsers a "hint" to help them put page breaks in the right places when printing out web pages. Here is an example: <p style="page-break-before: always">
This will force a page break when printing, before the start of this particular <p> element. Not all web browsers support CSS perfectly. If you must have absolute layout control and are primarily concerned with printing, consider using PDF rather than HTML.
|
| Visitor Comments |
|
No visitor comments posted. Post a comment
|
| Attachments |
|
No attachments were found.
|