Print HTML elements as pages by adding page break - HTML CSS CSS Property

HTML CSS examples for CSS Property:page-break-after

Description

Print HTML elements as pages by adding page break

Demo Code

ResultView the demo in separate window

<html>
 <head></head> 
 <body> 
  <div style="page-break-after: always;">
    Page 1 <!--   www  .  ja  va  2  s.  c  o m-->
  </div> 
  <div style="page-break-after: always;">
    Page 2 
  </div> 
  <div style="page-break-after: always;">
    Page 3 
  </div>  
 </body>
</html>

Related Tutorials