Forums.ATC.no

Teknisk => Generelt teknisk => Emne startet av: ATC på 27. ſeptember 2008, 18:24 pm

Tittel: Creating pagebreaks on HTML documents using stylesheets
Skrevet av: ATC27. ſeptember 2008, 18:24 pm
HTML documents are platform/media independent, and as such there are no native pagebreak tags. However, the problem can be solved using stylesheets.
Tittel: [Solved] Creating pagebreaks on HTML documents using stylesheets
Skrevet av: ATC27. ſeptember 2008, 18:24 pm
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 :-)