I am facing a challenge with my table setup
<table class="tbl" border="1">
<tr>
<td width="20%"><span class="spn">column one is longer than usual</span></td>
<td width="60%"><span class="spn">column two content here</span></td>
<td width="20%"><span class="spn">column three is the longest of them all</span></td>
</tr>
</table>
and I have specific CSS settings as well:
.spn
{
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: inherit;
color: red;
}
.tbl
{
width: 300px
}
I am looking to make the first and third columns 20% wide each, while the second column should occupy 60% of the total 300px table width. The text in each column should fill up the entire space and end with '...'. How can I achieve this?