Created
January 11, 2012 12:09
-
-
Save splitbrain/1594388 to your computer and use it in GitHub Desktop.
mpdf float behaviour
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$html = '<html><head></head><body> | |
<p><img src="http://php.net/images/php.gif" style="float:left"> this is right to the image</p> | |
<p>Browsers will show this right to the image as well. mpdf does not</p> | |
</body></html>'; | |
include("MPDF53/mpdf.php"); | |
$mpdf=new mPDF(); | |
$mpdf->WriteHTML($html); | |
$mpdf->Output(); | |
exit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment