0

I am trying to truncate some text in a column of my datatable. All it seems to be doing is, making the text one line, and running way off to the side of the page and not truncating it. Below is the css I have in place. I am trying to keep the text to one line and truncating the rest with ellipsis.

CSS:

table.dataTable td {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
} 
2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.