How to page break after an html element in CSS?

 Posted by Raja on 1/9/2009 | Category: CSS 3 Interview questions | Views: 9467
Answer:

Use following code snippet

<p style="page-break-after: always">Place your text</p>


After above code, the rest content will appear in the next page. (It will not be visible as next page in browser but on the printer and in Print Preview, you will see them as next page)


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response