mPdf ignores inline css style

0

I am generating a report that needs to have margin-left: 20px; But when generating the pdf, it does not respect this value.

<span style='margin-left: 20px !important;'>a) Meu texto com margin de 20px</span> .

Not even putting! important works How can I fix it?

    
asked by anonymous 26.10.2018 / 17:27

1 answer

0

It is described in the documentation of the library that it does not support this attribute / property ( margin-left ) for the span element. However, other tags (such as div ) accept the attribute / property. Try using one of these elements supported by the library, after all, what a span does, a div tb can do .

    
20.11.2018 / 15:35