How to select :nth-child() for all the elements in html except last element.
Is this valid=
td:nth-child:not(last-child){
//Some css//
}
I am using text-overflow:ellipsis property to hide overflow from table in <td>
elements.
It got successful with using even
,odd
children of this <td>
.
I want this ellipsis effects in all td blocks except last child of table.
I've given it a try-
.table-condensed tbody tr td:nth-child:not(last-child) a
{
white-space: nowrap;
text-overflow: ellipsis;
width: 150px;
display: block;
overflow: hidden;
}
But that's is not a trick obviously. Any suggestions?