SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2002
    Location
    vancouver, bc
    Posts
    134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    css when printing

    Hi,

    Am I able to specify page breaks in CSS ? I want to create a document that would have page breaks.

    Or would I just have to estimate the amount of content and add some <BR> when needed?

  2. #2
    SitePoint Evangelist Aska's Avatar
    Join Date
    Aug 2003
    Location
    Melbourne, Australia
    Posts
    454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    These CSS properties may help:

    page-break-after,
    page-break-before,
    page-break-inside

    A quick example:
    HTML Code:
    <div style="page-break-after:always">
      Blah blah blah
    </div>
    <div>
      <h1>2nd Page</h1>
      <p>Blah blah blah</p>
    </div>

  3. #3
    SitePoint Addict
    Join Date
    Sep 2003
    Location
    Europe
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •