Adding Page Break to the HTML Pages
So, now check which paragraph will be the beginning page of a new document. Insert the following tag before the paragraph using <p> :
<P style="page-break-before: always">
Example :
<html>
<body>
Page Break Example
<p style="page-break-before: always">
Text for the Page 2
<p style="page-break-before: always">
Text for the page 3
</body>
</html>
Subscribe to:
Post Comments (Atom)
2 comments:
Great little CSS snippet. I'm assuming this would go into the 'print' CSS. Could you confirm?
I am trying to learn a bit about Seo. Lovely tips.
Post a Comment