I have a Table
<table class="tbl" border="1">
<tr>
<td width="20%"><span class="spn">column one is a long one</span></td>
<td width="60%"><span class="spn">column two</span></td>
<td width="20%"><span class="spn">column three is the longest of all columns</span></td>
</tr>
</table>
and CSS-Settings:
.spn
{
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: inherit;
color: red;
}
.tbl
{
width: 300px
}
I want the first and third column to be 20% width and the second should be 60% of the 300px table width. The text should be fill the full td and end with ...
at the end. How to achieve this?