SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    ny
    Posts
    560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Print Lanscape & Eliminate last blank page- CSS

    I am trying to print each table in one paper. It does but when I use below style, it prints in portrait and the last page is blank... How will I print in landscape and eliminate last blank page without going to changing the print setting each time ?

    Code:
    <STYLE type="text/css">
    		P {
    	page-break-after:always
    	}
    </STYLE>
    
    </head>
    <body>
    <p>
    <table></table>
    </p>
    <p>
    <table></table>
    </p>
    .
    .
    .
    </body>

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use the page-break-before instead. Using after will always result in a new page after the last element.


  3. #3
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    ny
    Posts
    560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How about the landscape?

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    You do not have such control to perform that. At best, you can display a message (that doesn't get printed) that advises the user that printing in landscape will provide better print results.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •