Alternative to CSS transform origin

758 views Asked by At

I am using mPDF which ignores the following CSS:

-webkit-transform-origin: top left;
-moz-transform-origin: top left;
-o-transform-origin: top left;
-ms-transform-origin: top left;

This will render my html file in the browser fine but when the pdf is created each div in my pdf document is on a single line down the entire page.

Every div in the html document has an absolute position with its Left and Top property set with approximate px for its position in the document.

Example :

#tf_1{left:34px;top:161px;}
#tg_1{left:239px;top:161px;}
#th_1{left:239px;top:126px;}
#ti_1{left:45px;top:394px;}

Can anyone help with a possible alternative?

0

There are 0 answers