Two Pages on one printed Sheet: Achive multi-page printing options using CSS/HTML -
i creating html pages print them. designed each page separately, have 2 pages on 2 sheets if print them. know every printer having optins "2 pages on 1 sheet"..
but not want printing options depend on current document.
so question can rephrase in: how can efficient imitate printer-settings using css.
imagine following html , css:
<html> <head> <style> @page { size: 21cm 29.7cm; margin: 15mm 15mm 15mm 15mm; } html,body { font-family: sans-serif; font-size: 11px; width: 100%; height: 100%; margin: 0; padding: 0; } div.container { width:100%; height:100%; margin: 0; padding: 0; page-break-after:always; } </style> </head> <body> <div class="container"> ... </div> <div class="container"> ... </div> </body> </html>
i think divs must resized , rotated 90degrees... wonder if there easier way..
Comments
Post a Comment