Currently, I am utilizing tcpdf to showcase a circle and text together in a PDF. Despite my attempts with the code below, the border-radius
attribute is not functioning as expected:
Upon implementation, I obtained the following result:
https://i.sstatic.net/cHLTR.png
The desired outcome should resemble this image: https://i.sstatic.net/leCxa.png
Here is the snippet of code that I am working with:
$html='<table width="100%" border="0" cellpadding="20px">
<tr>
<td><p><div style="width:15px;height:15px;background-color:#58d68d;border-radius:50px;margin-right:05px;"></div> Demo1</p></td>
<td><p><div style="width:15px;height:15px;background-color:#f5b041;border-radius:50px;margin-right:05px"></div> Demo2</p></td>
<td><p><div style="width:15px;height:15px;background-color:#e74c3c;border-radius:50px;margin-right:05px"></div> Demo3</p></td>
</tr>
</table>';