Click to See Complete Forum and Search --> : printing a page
joao_br
11-25-2004, 09:03 AM
Hello, I´m having a little problem printing a html page, I have a page that is set to 100% height and weight of the browser. The problem is that even when the page has no content, just the header and the footer(100% weight) when I print it, it comes out in two diferent pages. I know it is supposed to cut part of the header and footer since they are 100% weight, that is fine, I just want to know if there is a way to prevent it from printing a blank second page.
Thanks.
ray326
11-25-2004, 10:01 AM
You could try setting a different size using a print medium style sheet.
chames
11-26-2004, 07:57 PM
You could make a printer safe sheet with nothing but text. The seconed sheet is proubly some hidden code that is invisable
GeorgeJohnson
11-26-2004, 08:41 PM
If I am not mistaken, Browsers automatically determines where page breaks should be when printing pages, however, there is 2 styles I can find off-hand that deal with controlling where page breaks are placed.
First is page-break-before, which you would use if you wanted something to always be at the top of a page when printed.
Second is page-break-after.
According to w3c for page-break-after has the following possible values:
auto: Insert a page break after the element if necessary
always: Insert a page break after the element
avoid: Avoid inserting a page break after the element
left: Insert page breaks after the element until it reaches a blank left page
right: Insert page breaks after the element until it reaches a blank right page
However, according to the table at http://www.w3schools.com/css/pr_print_pageba.asp only "always" is supported by IE 4.0+ and not supported by Netscape at all.
And the same applys for "page-break-before", only "always" is supported by IE 4.0+ only.
chames
11-26-2004, 10:06 PM
This doesn't have anything to do with you topic but, im from Oregon Wisconsin (south of madison about 7 miles). Where do you live?
joao_br
12-02-2004, 06:12 AM
.
chames
12-02-2004, 05:12 PM
I wasn't talking to you