What Is Blogs2Books?

Blogs2Books is a FREE program for backing up your blog and preparing it for print. Read the Blogs2Books story or Step-by-Step instructions.

July 9, 2008

Step 4: Insert Page Breaks

At this point your html file should look just the way you want it and you should have set up Internet Explorer (IE) for printing. Next you need to preview your file and insert printing page breaks wherever needed. This will require you to delve into the raw html file, but hopefully this will not be too complicated.


  1. With your html file open in IE, go to File > Print Preview. This is how your file will look when printed. Hopefully no words or pictures are being cut off on the sides. If they are, you will need to adjust your margins or move your pictures.


  2. Look at your file and determine the first place you think a page break should occur. This is usually where a picture is being cut in half across two pages or where a title is printed at the bottom of one page while the rest of the entry is on the next page.

  3. In this example, two pictures are being cut off at the bottom of the page. I'd like to push the entire entry onto the next page.


  4. In Nvu, locate the spot where you want to insert the page break and place your cursor at that spot.


  5. On my page, I want the page break right before the title, so I put my cursor there.


  6. Now for the html part. Click on the "Source" tab at the bottom of the Nvu screen. This will switch to the html code and your cursor will be in the same spot it was in before. In other words, this is exactly the spot you want to insert the page break.


  7. At this location paste this html code:
    <p style="page-break-before: always"></p>




  8. Save the file (File > Save). When you return to the "Normal" tab, the page won't look any different. The only way to see if it worked is to check the print preview.
  9. Return to IE. Close the previous print preview (if still open). Refresh the page. Open the print preview again to see the effect of your change.

  10. Repeat these steps until the preview looks just right. Note: This process can be very slow if your file has a lot of pictures since IE can take a while to load pictures. This is one of the main reasons why it helps to download only a few months of blog entries in each file instead of a whole year or more.