PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Overlapping divs when rendering pdf
   PostPosted: 20 Mar 2017, 09:56 
Hello,

I am experiencing the following issue:

Using float left style, the div1 is overlapped by div2.

<html>
<head></head>
<body>
<div style="overflow:hidden">
<div>
<div style="display:block">
<div id="div1" style="float:left">
<span>test 1 </span>
<span>test 2 </span>
</div>
<div id="div2">
<pre style="white-space: pre-wrap;word-break: keep-all;page-break-inside: auto;">
line 1111111111111111111111111111111111111111111111
line 2222222222222222222222222222222222222222222222
line 3333333333333333333333333333333333333333333333
</pre>
</div>
<div>text after pre element</div>
</div>
</div>
</div>
</body>
</html>

I cannot paste a real example due privacy issues .

Any idea what it can be ?

Thank you
Rodev


  Subject: Re: Overlapping divs when rendering pdf
   PostPosted: 21 Mar 2017, 11:21 
Problem solved by usind width:100% on pre elements.



[Reply]     [ 2 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share