I would like to show a text-overflow: ellipsis if the description is too long for the column. However, I'm not sure why my code isn't working. I added the! important in case if there were some internal CSS files that might have been overriding my CSS stuff. Right now, the text is all added to one line of code in the description and extending the width of 400px. [![Description Col][1]][1]
<div class="table-responsive">
<table class="table table-bordered" id="myTable" style="background-color:aqua">
<thead>
<tr style=" font-size: 18px;">
<th style="background-color:cadetblue; width:150px;">
@Html.DisplayNameFor(model => model.WorkOrderNumber)
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
//THIS LINE IS NOT WORKING
<td style="background-color:blueviolet; width:400px; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; ">
@Html.DisplayFor(modelItem => item.Description)
</td>
etc....