title: mPDF: how to make $mpdf->writehtml() inline
body: <p>i tried to put looped photos in my mpdf but it doesn't display as inline.</p>
  
  <p>heres my code:</p>
  
  <pre><code>while ($photos = mysqli_fetch_array($result_photo)) {
      $photo = $photos['photo'];
      $mpdf-&gt;WriteHTML('&lt;img src="/cert/uploads/patients/'.$photo.'" style="border: .5mm solid; width:45%; height:5.5cm;"&gt;');
  };
  </code></pre>
  
  <p>This is what i get<a href="https://i.stack.imgur.com/cV9EC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cV9EC.jpg" alt="enter image description here"></a></p>
  
  <p>does anyone know how to make it as inline?.
  i already tried putting <code>float:left</code> in the image but it only merges all the image and displays like in layer.</p>