Tuesday, November 13, 2007

page breaks




How to put page breaks in HTML print documents (For work I'm doing on the sunshineorganics.ca page:


page-break-before: always



And from htmlgoodies
always tells the browser to break the print page after this element always.

auto is the default. You're telling the browser to do what it would do anyway: Page break where the page ends.

left is not supported by any browser yet. It is used if your printer will print both sides of a page, like a manuscript. If the page is a left-facing page, use this attribute.

right is what you use if it's a right-facing page.


And an interesting, if scary one automatically print a web page in Javascript with:


window.print()