CSS to show first 10 characters remaining as 3 dots of word or sentence
Just use this CSS class
[code language="css"]
.ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
[/code]
This will result
[code language="html"]
<span class="ellipsis">Hello, am dhanu</span>
[/code]
Hello, am ...
[code language="css"]
.ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
[/code]
This will result
[code language="html"]
<span class="ellipsis">Hello, am dhanu</span>
[/code]
Hello, am ...
Comments
Post a Comment