If possible, set the height of the div elements. This will at least result in two page visibility. However, this does not apply to overlapping div s, and there may still be a problem of visibility of the contents of the div .
Here is my revision (some borders of visibility and coloring have been added, and width may be useful or may not be useful):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> @-moz-document url-prefix() { div{ position:relative; background-color: #dddddd; border: 1px solid #999999; width: 20%; } } @media print { marquee { -moz-binding: none; } body{ overflow:visible !important; } } #a{ position:absolute; top:50px; left:70px; height: 1000px; } #b{ position:absolute; top:1050px; left:170px; height: 600px; } #c{ position:absolute; top:1550px; left:470px; height: 500px; } #d{ position:absolute; top:1650px; left:270px; height: 100px; } </style> </head> <body>asdasd <div id="a">aa</div> <div id="d">bb</div> <div id="b">ff</div> <div id="c">asd</div> asdasda </body> </html>
source share