Why does the column get correctly cutoff with ellipses at 100px width in Chrome and Firefox but not in IE?
<table style="table-layout:fixed">
<tr>
<td style="width:100px;max-width:100px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap">QWRQWEQWEQWEQWEQWEQWEQWEQWEQWEQWEQWEEQWEQWEQWEQWEQWE</td>
</tr>
</table>
jsfiddled here
Fixed by adding a div container and applying all the styles to it, instead of the < td > like so:
<table style="table-layout:fixed">
<tr>
<td><div style="width:100px;max-width:100px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap">QWRQWEQWEQWEQWEQWEQWEQWEQWEQWEQWEQWEEQWEQWEQWEQWEQWE</div></td>
</tr>
</table>
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