I am able to keep two elements side by side on web page but not in PDF generated with mPDF. First element is a 'div' element and second element is image. I tried by setting 'display' properties. But mPDF has some limitations with inline block elements. Your help is appreciated. Thank you.
Code structure is like this:
<div>
<h4><span>Some Text</span></h4>
<span>Some other text</span>
</div>
<img src="some_url">
The PDF is generated with "WriteHTML" function call of mPDF. I'm passing whole HTML to this function to write HTML to document.