javascript - CSS Page breaking content with top margin -


i need print invoice unknown number of items, , @ end of invoice there terms , conditions - unknown number of lines.

so have similar this:

<body>   <div class="page">     <div class="margintop"></div>     <div class="invoicecontent"></div>   </div>   <div class="page">     <div class="margintop"></div>     <div class="invoicecontent"></div>   </div>   <div class="page">     <div class="margintop"></div>     <div class="invoicecontent"></div>     <div class="termsandconditions"></div>   </div> </body> 

so page has background image, contains identity of company, , @ top there logo. in div of margintop skipping number of lines there nothing printed their.

so in invoice content have in right place.

now terms , conditions comes variable holds text of html, user type , read , show here.

what want, if customer entered long term , conditions want break pages. thing cannot break because don't know break exactly, can thing if contains html code. , want when got printed out top margin should their.

can give me clues?

i can use simple javascript, cannot use jquery, , cannot height of content after page load, javascript should used while rendering. have tried did not work.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -