Search code examples
csspdfhtml-tablempdfborder-radius

td border radius with MPDF56


I have problem with border-radius. For example:

<table style="border-collapse: separate; border-spacing: 2px;">
    <tbody>
        <tr>
            <td style="border: 1px dotted black; border-radius: 5px;">Name</td>
            <td style="border: 1px dotted black; border-radius: 5px;">lastname</td>
        </tr>
        <tr>
            <td style="border: 1px dotted black; border-radius: 5px;">Name</td>
            <td style="border: 1px dotted black; border-radius: 5px;">lastname</td>
        </tr>
</tbody>

In the browser I get the result I need: enter image description here

But when I give MPDF56 code to generate a PDF, border-radius is disappeared, help me understand it.


Solution

  • Border radius on tables is not supported. https://mpdf.github.io/css-stylesheets/supported-css.html

    enter image description here