Link to home
Start Free TrialLog in
Avatar of clay111296
clay111296Flag for United States of America

asked on

Any way to put printing Page Breaks in html?

I am converting a word .doc to html.  It will probably be printed by the user, and I'd like to force some page breaks when its printed.
Is there any way to do this in HTML?
Avatar of ap3
ap3

There is an option for IE 4.0x:

<DIV STYLE="page-break-before:always;">&nbsp</DIV>

or

<DIV STYLE="page-break-after:always;">&nbsp</DIV>

This is part of CSS 2.0.  We should see it implemented in the future with Netscape because this standard has been approved by the W3C.
Avatar of clay111296

ASKER

Thanks for the tip. I suspected as much. I'll leave the question open, though.  If enough people do that, eventually the question will be worth 1,000s of points and perhaps someone will develop a solution :-).

BTW, I did find a printer driver program that allows any browser to support page breaks.  
But that's a bit extreme.  Would be easier to put it in .doc format and include a link to the word reader program from M$
ASKER CERTIFIED SOLUTION
Avatar of RoadWarrior
RoadWarrior

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
*smile*
there is also another assumption on that image file method, for it to work, the users printer must be set to a "square" resolution i think, i.e 240x240 or 600x600, not 240x200 or 600x300 or anything like that, though i presume in most cases the driver and browser should correct for that, but having had some wierd prints from my printer when set to 320x240, i would not count on it.
*smiling* also it would be important to tell people to print from the browser, if they save the images separately and print them with something else, then the sizing is at the mercy of their viewer app, that is why we are setting the image width to 100% with html *smile*

Regards.

Road Warrior.
Not a complete solution, but merits a grade.  Thanks for the input.  Giving a 'C' only because it doesn't actually solve the problem, but, rather, reveals no solution exists.