Javascript Reference
Categories: STYLE

javascript STYLE pageBreakAfter, pageBreakBefore

@Aug. 15, 2009, 12:31 p.m.
pageBreakAfter, pageBreakBefore Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2  

 

Read/Write  

Define how content should treat a page break around an element when the document is sent to a printer. Page breaks are not rendered in the visual browser as they may be in word processing programs; on screen, long content flows in one continuous scroll on the screen.  

 
Example
 
document.getElementById("hardBR").style.pageBreakAfter = "always";
document.getElementById("navPanel").style.paddingLeft = "10%";
 
Value

All supporting browsers recognize four constant values (as strings): always | auto | left | right. Additionally, IE for Windows supports an empty string, which has the same effect as the W3C CSS avoid constant.

 
Default

auto


Powered by Linode.