Previous Message
Next Message

[css-d] page-breaks in a print stylesheet

Sent by Michael Southwell on 18 July 2002 17:05


I'm having trouble with page breaks in a print stylesheet, though
everything else is working just fine. I have the following in my html
(and I tried putting a   in there just in case that would make a
difference; it doesn't):

<p class="nextpage"></p>

and I have this in print.css (with display:none in the screen stylesheet):

.nextpage {page-break-after: always}

Moz1/XP (in print preview) observes the page break but doesn't output
anything thereafter. IE6 successfully breaks the document up into
pages but does it by ignoring the specified nextpage. Opera does it
all correctly (except for one alignment problem which I haven't yet
bothered to fix). Is the problem here that page-break-after/before is
just not supported adequately everywhere? Or am I doing something
wrong?

An example of this problem is at http://www.dneba.com/test/design.php.

Oddly, an extremely simplified version of this problem at 
http://www.dneba.com/test/nextpagetest.php works in Moz and IE but *not* in 
Opera; even more confusing!

Thanks in advance for any help anyone can give.



Michael G. Southwell =================================
81 South Road
Bloomingdale, NJ 07403-1419
973-838-1022 (voice) 973-492-7873 (fax)
[EMAIL-REMOVED]
http://www.dneba.com
======================================================
Previous Message
Next Message