:first-child. Might work but pretty sure there are issues with IE6, see: http://www.quirksmode.org/css/firstchild. html. I have only the faintest idea how to force a page break in HTML.page-break-before: always - forces a page break. page-break-before: auto - allow browser to place the break. Page-break-before and page-break-after in Safari prints blank pages. IE7/IE8 page-break-after:always not working. gmail html preview removes css rule with page-break property. A page-break-before positioned after a div does nothing.Browsers are rather horrible in the printing department, so you have to hand them some crutches (like I did in the HTML I posted).As long as your needs are non-commercial you can always use Prince, luckily. You do that by setting up a class of page breaks. You can set up the class on any HTML command, but I think the best method is to set up the class within a P.
breakhere page-break-before: always . This then will be the activator for the page break The page-break-before property is used in CSS and certain HTML elements. It adjusts page breaks before the current element. To adjust page breaks after an element, use page-break-after. auto - Initial value. To work as intended, your CSS style sheet needs a correct document parse tree. This means you should use valid HTML.div.pagebreak page-break-before: always page-break-before and page-break-after. Here are your two boys for getting the job done- the CSS attributes page-break-before and page-break-after. Both instruct the printer to begin printing a new page, with the difference being before or following the element the attribute is applied to.
To suggest a page break, add