Float Right ?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #840

    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 all.


    I use a style statement with text-align:right;padding-right

    • This reply was modified 3 weeks, 6 days ago by RRowley.

    Thanks for the input. I tried changing the css so that the .right class shows as;

    .right {
    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 ?


    Can you include a picture of what you get and explanation of what you want to see?


    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.

    mPDF supported CSS attributes


Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.