How to hide part of the text inside div or span ?
div
span
I have a text of 160 characters but I would like to display only first 40.
I ha
You can use a simple css property for your element "text-overflow: ellipsis;" to use this property effectively you need to apply some related properties along with that.
For Example:
Some text goes here
*Tested in Chrome.