Is there a way to give HTML table width and height in millimeters?
<table border="1">
<tr width="17mm">
<td>gukgu</td>
<td>gukgu</td>
</tr>
</table>
Is this works?
Is there a way to give HTML table width and height in millimeters?
<table border="1">
<tr width="17mm">
<td>gukgu</td>
<td>gukgu</td>
</tr>
</table>
Is this works?
Yes, you can set widths in millimetres. However, setting a width on a <tr>
element usually doesn't do anything. Instead, consider adding this style to the table: width:17mm; table-layout:fixed
You can using css
, however it is only recommended for print. For display on screen, you use em
, px
or %
.
<table border="1">
<tr>
<td style="width: 17mm;">gukgu</td>
<td style="width: 17mm;">gukgu</td>
</tr>
</table>