I'm using Bootstrap and am trying to disable word wrap in td
elements of a table
. I've applied white-space: nowrap
to the td
element, which disables the word wrapping as expected, but now the table
itself will span beyond the column that it is within. So, this CSS alone seems to be breaking bootstrap.
I'd like to use text-overflow: ellipsis
now, so that any would-be-wordwrapped text is instead truncated using ellipsis. I can't seem to apply this CSS to anything and have it work, though. Nothing seems to happen regardless of where I apply it. The table always expands beyond the desired grid column.
How can I make it so that word wrapped is disabled, within td
elements, and the text is truncated using ellipsis, without breaking the grid?