Page printing CSS

Source: Internet
Author: User
Tags blank page
CSS pagination

Page-break-before: Auto|Always|Avoid|Left|Right|Null
 
Parameters:
 
Auto:If you want to insert a page delimiter before the object
Always:Always insert a page delimiter before the object
Avoid:Avoid inserting page delimiters before objects
Left:Insert a page delimiter in front of the object until it reaches the left edge of a blank page.
Right:Insert a page delimiter before the object until it reaches a blank right page.
Null:Null Value. Ie5 is used to Cancel Page delimiter settings
 

Page-break-after: Auto|Always|Avoid|Left|Right|Null
 
Parameters:
 
Auto:If you need to insert a page delimiter after the object
Always:Always insert a page delimiter after the object
Avoid:Avoid inserting page delimiters behind objects
Left:Insert a page delimiter after the object until it reaches the left edge of a blank page.
Right:Insert a page delimiter after the object until it reaches a blank right page.
Null:Null Value. Ie5 is used to Cancel Page delimiter settings

Note:
 
Retrieves or sets the page delimiter that appears before an object.
Ie5 only supports the always and blank values (Null).
In ie4, this attribute does not act on the BR object, but ie5 does.
Corresponding script features:Pagebreakbefore. For more information, see my other bibliography.
 
Example:
 
P {page-break-after: Always ;}
 

Use in IE6
Style = "Page-break-before: Always"
You can print pages.

IE7 does not work. This CSS does not work.
Add this CSS.
<! -- [If IE 7]> <br style = "height: 0; line-Height: 0"> <! [Endif] -->

All CSS
<Div style = "Page-break-before: Always;">
<! -- [If IE 7]> <br style = "height: 0; line-Height: 0"> <! [Endif] --> or] <br style = "height: 0; line-Height: 0">
</Div>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.