Ano-Tech Computers
Enter keyword:

Creating pagebreaks on HTML documents using stylesheets
Problem:
HTML documents are platform/media independent, and as such there are no native pagebreak tags. However, the problem can be solved using stylesheets.
 
Solution:
Put the following code in the style sheet:
"<STYLE>
.pagebreak {page-break-before:always}
</STYLE>"

Now use the following HTML code to insert pagebreaks:
"<DIV class='pagebreak'>&nbsp</DIV>"

For more web specific solutions, see http://www.west-wind.com/wckb/index.htm
Credits fly out to Waffle for this tip :-)

 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles