Hi, I’m nearly finished fixing up my installation and I’m trying to replicate the pdfs I used to generate under my aging php5 build of Simple Invoices. I’m struggling to work out why float right is ignored when the PDF is rendered, leaving the ‘Invoice Summary’ on the left instead of floating to the right like it does in the HTML preview. Can anyone give me some advice ? I’m hoping @fearless359 might be able to give some pointers 🙂
Thanks for the input. I tried changing the css so that the .right class shows as;
float: right !important;
and the text in the ‘Invoice Summary’ is right justified, the block is still on the left of the page. It doesn’t seem to matter what I set the ‘padding-right’ to because it never gets applied (it’s always left justified on the page).
I’m assuming that this is a problem for everyone using the default form ?
mPDF does not support nested block elements which overlap (horizontally or vertically) i.e. the inner block must be contained by the outer block’s physical dimensions. width and height are overridden if this is not the case.
you can use this manual from mPDF to find out which attributes are supported.