Microsoft KB Archive/180856

= DOC: Page Break Styles Supported Only with Block Elements =

Article ID: 180856

Article Last Modified on 10/2/2003

-

APPLIES TO


 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 Service Pack 2

-



This article was previously published under Q180856



SUMMARY
The Internet Client SDK contains an example of how to use the page-break- after CSS style to force Internet Explorer to insert a page break when printing an HTML document. This example is incorrect because it uses a BR tag, which is not a block element. The following example is documented in the Dynamic Styles, Style Sheets and Printing topic of the Dynamic Styles section of the Internet Client SDK online help:  Dynamic Styles: Page Breaking  BR.page { page-break-after: always }    .      content on page 1 .   .      content on page 2 .    In the above example, no page breaks are generated when this document is printed from Internet Explorer. Replace the  tag and BR.page style definition with a  tag and P.page style to achieve the correct behavior.



MORE INFORMATION
The page-break-before and page-break-after CSS styles enable a Web author to insert page breaks when the document is printed from Internet Explorer.

These styles only work with the following block elements: BLOCKQUOTE, BODY, CENTER, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, UL, and XMP.

This limitation also applies to the pageBreakBefore and pageBreakAfter properties of the Dynamic HTML style object.

<div class="references_section">