Add CSS Class
.ellipsis span {
white-space:nowrap;
text-overflow:ellipsis;
overflow:hidden;
width:190px;
display:block;
}
html>body .ellipsis {
clear:both;
}
html>body .ellipsis span:after {
content: "...";
}
html>body .ellipsis span {
max-width:180px;
width:auto !important;
float:left;
}
And HTML is
<div class="ellipsis">
<span>wwwwwwwwwwgfdgdfgdfgdfgfdgdfgdfgxgsdgsdfgdfgfdgdfgdfgdfgdfgdfg</span>
</div>