IE6 printing crash on position:absolute docs

  • Thread starter Michael J. Reynolds
  • Start date
M

Michael J. Reynolds

Has anyone else experienced this IE6 bug? If you try to print or
print-preview a document that contains elements specifying position:absolute
style and new negative-valued padding and positive-valued margin styles in a
particular sequence, IE6 crashes. Here's a document demonstrating the bug
and specifying the exact circumstances that cause the crash:

<HTML>
<HEAD><TITLE>position:absolute bug demo</TITLE></head>
<body>
<div style="position:absolute; left: 50px; top: 50px;">
Outer element specifying position:absolute style
<p>Demonstrates IE6 print position:absolute bug.
Print preview this document and IE6 will crash</p>
<p>Bug causes IE to crash in the following circumstance:
<ul>
<li>an outer element specifies the
<code>position:absolute</code> style command
<li>another element within the outer element contains
text
<li>another element within the inner element specifies a
new
negative-value <code>margin</code> style
and a new positive-value <code>padding</code> style
<li>the elements span two pages if printed
<li>user tries to print the page or invoke print-preview
</ul>
</p>
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
<AnyElement>Any text within an inner element
<div style="padding: 1px 0; margin: -1px 0 0 0;">
an inner inner element specifying a new positive-value
padding
and negative-value margin
</div>
</AnyElement>
</div>
</BODY>
</HTML>

The printer being used has no effect. Please respond if you've encountered
this bug or know if Microsoft is aware of it.

-- Mike Reynolds
Libraries ITS
University of Washington
 
G

Guest

I ran across a similar problem. The pages print, but not correctly. In the MS
Help I found:
"Q257085 When you print or preview a Web page, the layout of the text may
not be exactly the same as when you view the page in Internet Explorer.

Their answer: Web page developers can work around this issue by setting
"margin=0" in the body tag of the Web page."

My webpage has DIVs, and each DIV has specific margins. So even though I set
the margin to 0 in the body, the DIVs are not printing properly. It works
fine in Netscape, and Opera, just not in IE.

Suzanne Leonard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top