Workaround for floats in DOMPDF

DOMPDF does not support floats .

However, I list a lot of tables, and they are mostly keys and value pairs. I would like for two of these tables to appear side by side.

i.e. if i could use float

HTML

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

CSS

 table#stuff { float: left; } table#other-stuff { float: right; } 

What workaround can be made to support this? Or is it impossible?

If anyone has any ideas, there is a place for testing here .

+4
source share
2 answers

It looks like beta is supported .

You can download that from the Google Code Page .

+4
source

Make a table with 2 cells (50% if necessary). Align 1st to left and second to right. In each cell you place your tables.

It should look like 2 floats.

+3
source

Source: https://habr.com/ru/post/1307744/


All Articles