Thought I share some findings on this bug. See a reduced testcase [1].

<style type="text/css" media="all">

#parent {
   position: relative;
   width: 750px; /* sets haslayout=true*/
   }

#child {
   float: left;
   }

</style>

<style type="text/css" media="print">

#parent {
   width: auto; /* resets haslayout to false*/
   }

</style>
</head>

<body>
   <div id="parent">
     <div id="child">
       <ol>
         <li>Lorem ipsum dolor


In IE7 (but not in IE6), only the first page is printed. The print 
styles reset haslayout to false for the parent element.

In effect, the relatively positioned non-layout parent tries to contain 
a floating child, but fails.

The frustrated parent itself vanishes for the most part (for example, a 
border on #parent presents only its border-top fragment).

Never try to contain a float in a relatively positioned parent that has 
no "layout" [2, 3].

Ingo

[1] http://www.satzansatz.de/cssd/disappearonprint.html
[2] http://www.satzansatz.de/cssd/rpfloat.html
[3] http://archivist.incutio.com/viewlist/css-discuss/75740

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