I'm using DOMPDF to generate PDF invoices.
Now I have a problem with some <li>
elements. The elements are 50% in width. The <ul>
has a width of 100%.
But the <li>
elements still have an overflow. See image on the right.
This is my current CSS code:
ul {padding-top: 8px; padding-left:0px; margin: 0; list-style: none; border-top: 2px solid #000000; display: block; width: 99%;}
ul li {display: inline-block; width: 50%; margin-bottom: 4px;}
ul strong {display: inline-block; width: 40%;}
Is there anything I've missed or a known bug?