elipse text with certain length css code example
Example 1: css overflow truncate
//Truncate text overflow
.element {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
Example 2: css limit text length
/*CSS to limit the text length inside a div*/
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;