<div id="wrap">
<p style="text-overflow:ellipsis;width:100%;"> Pope Benedict XVI becomes the first pontiff to resign in nearly 600 years, saying his health is deteriorating.</p>
</div>
This is the html.
I would like to make a text that ends with ... when its size exceeds the size of its container. I learned from this example, but it doesnt work for me. I created a fiddle for you to try here.
I would like to acutally have multiple lines and then end in ..., when the text exceeds the size. Is that possible? I am having trouble with just one line anyway.