Answer the question
In order to leave comments, you need to log in
How to trim long words inside a table?
Good evening!
Using bootstrap 3.3.7
Made a simple table
<table class="table">
<thead>
<tr>
<th width="30%"></th>
<th width="40%"></th>
<th width="30%"></th>
</tr>
<thead>
<tbody>
<tr>
<td>ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss</td>
<td>dddddddddddddddddddddddddddddddddddddddddddddddddddd</td>
<td>jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj</td>
</tr>
</tbody>
</table>
.clip {
white-space: normal; /* Запрещаем перенос строк */
overflow: hidden; /* Обрезаем все, что не помещается в область */
text-overflow: ellipsis; /* Добавляем многоточие */
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question