Workaround for floats in DOMPDF

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-04-22T23:47:06Z Indexed on 2010/04/22 23:53 UTC
Read the original article Hit count: 343

Filed under:
|
|
|
|

DOMPDF does not support floats.

However I am listing many tables, and they are mainly key & value pairs. I would like 2 of these tables to appear side by side.

i.e. if I could use floats

HTML

<table id="stuff">
...
</table>

<table id="other-stuff">
...
</table>

CSS

table#stuff {
    float: left;
}

table#other-stuff {
    float: right;
}

What sort of workaround can I do to support this? Or is it impossible?

© Stack Overflow or respective owner

Related posts about php

Related posts about dompdf