In a responsive table text-overflow:ellipsis is not working when the data increases in the th (as the col-xs-2 width increases). >
text-overflow:ellipsis
th
col-xs-2
With Bootstrap 4, you can use the .text-truncate class. It automatically adds these styles for the relevant components.
.text-truncate
.text-truncate{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
then you can set the max-width for the element to get more reliable output.