<td style="width:100%;overflow:hidden;border: 1px solid red"><div style="width:100px;border:1px solid green;white-space:nowrap">Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello,
how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? </div></td>

Re: Possible to add text-overflow:ellipsis at a tabel cell?

<td style="max-width:400px;overflow:hidden;border:1px solid red;text-overflow:ellipsis;white-space:nowrap">Hello, how are you? Hello, how are you? Hello, how areyou? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how
are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, howare you? Hello, how are you? </td>

Re: Possible to add text-overflow:ellipsis at a tabel cell?

<table style="table-layout:fixed;width: 100%;"><tbody><tr>
<td>System</td>
<td style="max-width:40rem;overflow:hidden;border: 1px solid red;text-overflow:ellipsis;white-space:nowrap;"> Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? </td>
<!-- your remaining code here -->

Re: Possible to add text-overflow:ellipsis at a tabel cell?

I tested code below ,and it seems works well when I change the screen size,

And here is my screenshot :

And code:

@{
ViewBag.Title = "Index";
Layout = null;
}
<html>
<head></head>
<body>
<h2>Index</h2>
<table style="table-layout:fixed;width:100%">
<tr>
<td style="max-width:40rem;overflow:hidden;border:1px solid red;text-overflow:ellipsis;white-space:nowrap">
Hello, how are you? Hello, how are you? Hello, how are
you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how are you? Hello, how
are you? Hello, how are you?
</td>
</tr>
</table>
</body>
</html>

Best regards,

Jolie

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

Re: Possible to add text-overflow:ellipsis at a tabel cell?

TW88

the width of 4th column is also a little bit different from different cases

If so ,I suggest that you may use x% to set the 4th column.

Best regards,

Jolie

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.