'page-break-after' Example : page break after « CSS « HTML / CSS






'page-break-after' Example

    
<html>
<body>
<div style="page-break-after:'always'; 
            background-color:#EEEEEE; 
            width:400; 
            height:70">
     When printing, there will be a page-break after this object.
</div>
</body>
</html>

    
      
      








Related examples in the same category

1.insert a page break after an element by using page-break-after:always.
2.The default values are page-break-before:auto and page-break-after:auto.