I am calling few sentences from a JSON file and append it in a <p>
tag.
<p>
Thank you all for another magical night spent together
this last sunday at The Hippodrome in Baltimore.Thank yo...
<p>
And i'd like to shorter it, even it's already been shorten in the json, am i able to use pure css or html to limit it's length?
I don't need any javascript/Jquery suggestion because if comes to javascirpt it's easy to accomplish this task, i might just play with dom, but in this case i want to see if there's any pure html and css method can do this.
UPDATE 1:
Everyone suggest me to convert the sentences in to one single line using white-space: nowrap
and then hidden text by setting text-overflow:ellipsis
but there's a limitation, the html can just display single line. Is there anyway to display another line?