I'm trying to break a text inside a <td>
. I tried some solutions poroposed but it seems none of them works.
Possible Duplicate: Word-wrap
I want to break a big link. Here's my code:
<div style="padding-top: 250px; margin-right: 25px;">
<table style="table-layout:fixed; width:700px;">
<col width="300">
<col width="10">
<col width="10">
<col width="10">
<col width="10">
<thead>
<tr>
<th class="desc">Link</th>
<th class="unit">Price</th>
<th class="qty">Amount</th>
<th class="service">TVA</th>
<th class="total">TOTAL</th>
</tr>
</thead>
<tbody>
<tr>
<td class="desc" style="overflow:hidden; word-wrap: break-word;
word-break: break-all;">Link</td>
<td >price</td>
<td >amount</td>
{% if oProd.tva %}
<td>tva%</td>
{% else %}
<td>TVA non existante</td>
{% endif%}
<td>inal_price</td>
{% set total = total + final_price%}
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan="2"></td>
<td colspan="2">Prix final</td>
<td>{{ total }}</td>
</tr>
</tfoot>
</table>
</div>
Now here's my CSS for desc:
.service .desc h4 {
font-size: 22px;
line-height: 25px;
}
.service .desc {
padding: 0 15px;
overflow: hidden;
}
table .desc {
text-align: left;
background: #D0D0D0;
}