span limit text length

Solutions on MaxInterview for span limit text length by the best coders in the world

showing results for - "span limit text length"
Alejandra
14 Jan 2018
1<style>
2	.text {
3  		display: block;
4  		width: 100px;
5  		overflow: hidden;
6  		white-space: nowrap;
7  		text-overflow: ellipsis;
8	}
9</style>
10<span class="text">Hello world this is a long sentence</span>