dimanche 13 décembre 2020

Laravel and barryvdh/laravel-dompdf (html not displaying correctly in Pdf )

I need to create like this model in PDF :

Label a4/8

In html works great like this : enter image description here

But when i loaded to pdf(barryvdh dompdf) I got this result? i'don't know why some content changes his place

enter image description here

This my html

<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style>
table{
  width: 100%;
}
table tr td{
  text-align: left;
  border:1px solid;
  display: inline-block;
  width: 45%;
  height:150px;
  margin-top: 2px;
}

</style>
</head>
<body>
<table>
    
  <tr>
        @foreach($colisenattent as $coli)  
        <td>
            
        </td>
        @endforeach
  </tr>

</table>

</body>
</html>


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3gJN26t
via IFTTT

Aucun commentaire:

Enregistrer un commentaire