Alan K. Gay wrote:
> My issue is with print-break-before:always in combination with any page
> contents that have a height spec.  Pagination is ignored.  ...
> This is the sample code that breaks when printed.  Each div should be at the
> top of a page, but they are not.
> 
> <html><head><title></title></head><body> 
> <p style="background-color:red;height:800px;">Page 1</p> 
> <div style="page-break-before:always;"><p 
> style="background-color:red;height:600px;">Page 2</p></div> 
> <div style="page-break-before:always;"><p 
> style="background-color:red;height:6in;">Page 3</p></div> 
> </body></html>
> 

Inserting "something" before the <p> seems to fix it in your test case.

<div style="page-break-before: always;">
   <!--[if IE 7]><br style="height:0; line-height:0"><![endif]-->
   <p style="background-color:red;height:600px;">Page 2</p>
</div>


Ingo

-- 
http://www.satzansatz.de/css.html
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to