@boby can you add a red border around your divs and resupply your screengrab?
also can add the css that you are using to this thread too?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
So I am using barryvdh/laravel-dompdf to generate invoice pdf file. The problem is white space I have between header and the content
https://www.dropbox.com/s/23w4y7p2coz4kg8/offer.png?dl=0
So the space between Customer Number and Offer Number below it.
My blade file (striped):
<header id="header" class=""> <!-- header -->
<div class="row header">
<div class="col-sm logo">
<img src="user_logo_1596900003.png" alt="Company Logo">
</div>
<div class="col-sm">
</div>
<div class="col-sm invoice-user-details">
<p>Demo Company</p>
<p>Some address</p>
<p>Tel: 0123456789</p>
<p>E-mail: [email protected]</p>
<p>Web: www.demo.com</p>
</div>
</div>
<hr class="header-hr">
<div class="row">
<div class="col-sm invoice-customer-details">
<b><p>Customer company name here</p></b>
<p>Customer address</p>
<p>City</p>
</div>
<div class="col-sm invoice-details">
<p><b>AN0001/2020</b></p>
<p>12.10.2020</p>
<p>24.10.2020</p>
<p>Customer Nr.: 0001</p>
</div>
</div>
</header><!-- /header -->
<div style="page-break-after:auto;">
<div class="container content">
<p class="offer_title">Offer AN0001/2020</p>
<div class="row">
<table class="table invoice-articles-table">
<thead>
<tr>
<th>#</th>
<th></th>
<th>Article</th>
<th>Quantity</th>
<th>Price</th>
<th>Discount}</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr>
<td>
1
</td>
<td>
<img src="some_image.png" width="50px">
</td>
<td>
Article1
</td>
<td>
1
<td>
0.00
</td>
<td>
0.00
</td>
<td>
0.00
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td class="invoice-amounts" colspan="7">
<p>Total: 0.00 € </p>
<p>Tax 20%: 0.00 € </p>
<p>Grand Total: 0.00 € </p>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
</body>
</html>
There is nothing special in my css file regarding this space.
Anyone have this problem?
Please or to participate in this conversation.