<cfdocument> Strange Behavior With CSS Styles
Hi all, I hope someone can shed some light on this frustrating problem.
I have two columns of lists (definition lists) in an existing webpage, which are side by side, so the user can compare the data in them. So the HTML looks something like this:
<div class="container">
<dl class="first">
<dt>First title</dt>
<dd>First definition</dd>
</dl>
<dl class="second">
<dt>Second title</dt>
<dd>Second definition</dd>
</dl>
</div>
That's simpled down but you get the idea. And the CSS:
.container {width:100%;}
.first,.second {float:left; width:50%;}
And that displays as I want in the browser, with each list side by side. But, when I use cfdocument to output a PDF, the DL lists are 100% width and appear on top of each other. I've tried every CSS technique I can think of (adjusting floats, clears, pixel widths, !important) to get it to work but they are always 100% of the way across the document, one above the other.
When I do some tests starting with a blank HTML document and using the code above, I am able to style it and the PDF displays them side by side as required. However, I need to do this with an existing page and it just won't do it. Always 100% width, even when I remove every single style that is targeting that page. I've tried removing each element one by one with display:none; in the CSS and each DL list is always 100% of the width. I can change colours etc but it wants to always make the lists the full width.
Big thanks if anyone can help with what might be causing this behavior.
