I have some divs
with display: table-cell
style and I would like to set fixed width on the divs
and to truncate the text inside if it doesn't fit.
HTML
<div class="row">
<div class="cell" style="width:100px;">Should not fit in 100px</div>
</div>
CSS
.row {
display: table-row;
}
.cell {
display: table-cell;
border: solid 1px #DADADA;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
Is it possible?