I just want a method to know that the second paragraph does not fit on the
first page.
here is the code (note that page-break-inside is not supported in IE6 or
smaller)
<html>
<head>
<style type="text/css" media="print">
@page {size: portrait; }
.page {page-break-after: always;}
.lastpage {page-break-after: avoid;}
.class1 {page-break-inside: avoid;}
</style>
</head>
<body>
<p>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
This is page 1<br>
</p>
<p class="class1">
This should go to page 2 because doesn't fit on page 1<br>
This should go to page 2 because doesn't fit on page 1<br>
This should go to page 2 because doesn't fit on page 1<br>
This should go to page 2 because doesn't fit on page 1<br>
This should go to page 2 because doesn't fit on page 1<br>
This should go to page 2 because doesn't fit on page 1<br>
This should go to page 2 because doesn't fit on page 1<br>
This should go to page 2 because doesn't fit on page 1<br>
</p>
<p class="page">This is page 2</p>
<p class="page">This is page 3</p>
<p class="lastpage">This is the last page</p>
</body>
</html>
--
................................................
Mihai Cristian Bocai
http://www.inwww.ltd.uk
................................................
INWWW Ltd London
................................................