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:
<HTML>
<HEAD><TITLE>Dynamic Styles: Page Breaking</TITLE>
<STYLE>
BR.page { page-break-after: always }
</STYLE>
</HEAD>
<BODY>
.
content on page 1
.
<BR CLASS=page>
.
content on page 2
.
</BODY>
</HTML>
In the above example, no page breaks are generated when this document is
printed from Internet Explorer. Replace the <BR> tag and BR.page style
definition with a <P> 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.
REFERENCES
See the Dynamic Styles, Style Sheets and Printing topic of the Dynamic HTML
section in the Internet Client SDK online help:
Additional query words: CSS stylesheet
Keywords: kbprb kbdocerr KB180856