Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

paged media

0 views
Skip to first unread message

Mihai Cristian Bocai

unread,
Mar 27, 2003, 5:51:11 AM3/27/03
to
Hi,
is there a way to avoid the page break of the second paragraph?
but without using page-break-after (or before).

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
................................................

0 new messages