• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 18. Paged Media > Page-Break Properties

18.3. Page-Break Properties

The paged media family comes with three properties specifically designed to set where page breaks should (or should not) occur within Web pages when they are printed: page-break-before, page-break-after and page-break-inside. The first two accomplish the task of inserting a page break. page-break-inside operates using a sub-set of values assigned to both page-break-before and page-break-after and is used to prevent a page break within a particular part of the Web page. All three are used in conjunction with block-level properties, so page breaks are not set from within a line of text.

Both> page-break-before and page-break-after share the following values: auto, avoid, left, right, always and inherit. The auto value is the default setting, and neither forces nor prohibits a page break from occurring at a specific point. avoid tells the browser to specifically avoid forcing a page break before a given block-level element. The left value forces a page break to occur so that subsequent text appears on a left-facing page, and the right value forces a page break to occur so that the subsequent text appears on a right-facing page. When using the left and right values, be aware that in order for the browser to produce a subsequent page that is either to be printed as a left- or right-facing page, a blank page may need to be inserted. For example, if the previous page is left-facing and left is used, then a blank right page would have to be present before the next left-facing page could appear.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint