css truncate text with ellipsis
.foo{ width: 250px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }