I am trying to create a CSS class that will help me define a "page break".
I know that if I use @media:print .MyDiv{ width:100%; height:100%; } @media:print .MyDiv{ width:100%; height:100%; } @media:print .MyDiv{ width:100%; height:100%; } , then I can set the div class to MyDiv , and it will - as best as possible - 1 print page. A.
This is great, but I came across a new element that I do not know how to handle, and I hope that something like this can be done. I need to create an empty div that will stretch to the "end of the page".
Something like:
<style type="text/css"> @media print .PageBreak { width: 100%; height: *; } @media screen .PageBreak { border-bottom: 1px solid black; } </style> <div>This should appear on the first page.</div> <div class="PageBreak"></div> <div>This should appear on the second page.</div>
css
Jerry
source share