Page Break

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I insert a page break and view where it is in the document. Im working in tables and when I try to print the second page, it breaks off the table at the wrong point in the document.
 
Deb,

Page breaks are kind of difficult on the web. Unlike a Word file where you
can define a page size and see a definite separation between one page to the
next, web pages just keep going until the end of the document.

You have a couple choices when it comes to controlling printing. The
easiest is to simply break your content up into multiple HTML files. But
from your description, it doesn't sound like this is appropriate to your
needs.

More difficult is to use the ability of Cascading Style Sheets (CSS) to
define page breaks within your document. If you're already familiar with
CSS, then this won't be as difficult as I'm making it sound, but if you have
zero experience, you've got some learning curve to deal with.

Here's some documentation on CSS page breaks. There may be other, better
resources, but you'll at least get the syntax here:
Page break before (break before an element)
- http://www.w3schools.com/css/pr_print_pagebb.asp
Page break after (break after an element)
http://www.w3schools.com/css/pr_print_pageba.asp

An article discussing CSS and Printing:



Just in case, here's some CSS resources to get you started down the road if
you aren't already:
http://www.w3schools.com/css/default.asp
http://www.mako4css.com


Deb said:
How do I insert a page break and view where it is in the document. Im
working in tables and when I try to print the second page, it breaks off the
table at the wrong point in the document.
 
Back
Top