Register | Login
Sunday, July 20, 2008

Sections
  
About Us
  
Hosting Provided by Server Intellect
Partners
Downloads
  
 WWWCoder.com Resource Directory

Setting a Page Break for Printing
11/28/1999 12:00:00 AM

Article discusses the use of CSS attributes to set a page break in your html page for formatting for printing.

This tip is for Internet Explorer 4.x. and above.


If you provide documents on your Web site that users can print, you can control the placement of page breaks in your documents by using the page-break-before and page-break-after attributes. These attributes indicate when to break to a new page when printing the document and on what page (left or right) to resume printing. These attributes are useful when you want to print long documents into logical sections.


For example, the following document defines a class "page" in a style sheet and uses it to set page breaks in the
document.


<HTML>
<HEAD><TITLE>Page Breaks</TITLE>
<STYLE>
    BR.page { page-break-after: always }
</STYLE>
</HEAD>
<BODY>
    .
    content on page 1
    .
<BR CLASS=page>
    .
    content on page 2
    .
</BODY>
</HTML>


Page Options:
format for printing  Format for Printer
email article  Email Page
add to your favorites   Add to Favorites
How would you rate the quality of this content?
Poor - - Excellent
Comments?
Overall Rating:
Comments Left:
Left on 4/20/2007 7:07:11 PM by Anonymous
Comments: Hey, can you right your own?..or just get it from microsoft?
Left on 6/21/2006 11:28:26 PM by Anonymous
Comments: Simple copy and paste and it worked straight up.  Always sweet when that happens.
No ratings available.
Left on 6/3/2005 4:28:08 PM by Anonymous
Comments: YEAH!!  Thank You very much!
No ratings available.
Left on 11/3/2004 10:45:18 AM by Anonymous
Comments: Excellent, simple but effctive and a developer have all control in it tooo...
  

 Latest Articles
  

 Latest News
  

 

Spotlight
Syndication

 


 


Digg This
 


DotNetNuke Platinum Benefactor

  
 

 Terms Of Use | Privacy Statement
 Copyright 2008 - Santry Technology Solutions, Box 172, Girard, PA 16417, (814) 774-0970