Question

I have 2 divs like the following:

jsFiddle

You can they render, one on top of each other, which is fine.

The problem is the positioning within the PDF.

I have tried in the style position:absolute;top:100px etc, but for some reason I cannot move the div when rendering using mPDF. none of the top, left, right or bottom positioning seem to work. Is this a limitation in mDF?

Any ideas?

Was it helpful?

Solution

well as its a PDF it doesnt work in pixels its in mm but other than that it should work, have a look through the examples that come with it, theres some really good examples of achienving different stuff in CSS

OTHER TIPS

Taken directly from the mpdf site.

Blocks which are defined as position:absolute, position:fixed or float:xxx are only partially supported.

http://mpdf.bpm1.com/index.php?page=Limitations

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top