Consultor Eletrônico



Kbase 21346: How To Do an HTML Break Page Using CSS
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

GOAL:

How To Do an HTML Break Page Using CSS (Cascading style sheets)

FACT(s) (Environment):

Internet Explorer 4 (IE4)

FIX:

IE4 and above supports the page-break-before statement to do page breaks when printing HTML documents. Page-break-before supports four options:
ALWAYS -- Page break is done always, after the element is printed.

AUTO -- Do a page break after the element only if necessary.

LEFT -- Do one or two page breaks after the element, until a blank left page is reached.

RIGHT -- Do one or two page breaks after the element, until a blank right page is reached.

NOTE: The page-break-before statement is not supported in Netscape browsers.

The following is an example of the page-break-statement in an HTML document:


<HTML>

<HEAD>

<TITLE>Page Break</TITLE>

<STYLE type="text/css">
<!--
.break {page-break-before: always}
-->
</STYLE>

<BODY>

<P><B>Page breaks in HTML documents</B></P>

<P CLASS="break">Text on Page 1</P>

<P CLASS="break">Text on Page 2</P>

</BODY>

</HTML>