Just CSS: http://jsfiddle.net/FdyG2/1/
div {
width: 400px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
Avoid breaking line: white-space: nowrap;
Three dots at the end of the line: text-overflow:ellipsis;
Important: you need to set width and overflow:hidden.