In html, if I create a html table with column like this
<table>
<tr>
<td>This is your ID</td>
<td>021-000-00001</td>
<td>...</td>
</tr>
</table>
space and - will cause multiple lines when it is rendered. So for space, the solution is:
<td>This is your ID</td>
but for dash sign -, even I replace it as —, like
<td>021—000—00001</td>
it still displays as multiple line.
How to resolve it?
Try something like
<td style="white-space: nowrap;">021-000-00001</td>
that should stop it breaking at the hyphens.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With