Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

span limit text length

<style>
	.text {
  		display: block;
  		width: 100px;
  		overflow: hidden;
  		white-space: nowrap;
  		text-overflow: ellipsis;
	}
</style>
<span class="text">Hello world this is a long sentence</span>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #span #limit #text #length
ADD COMMENT
Topic
Name
7+7 =