I want to be able to add three dots and keep the text on one line in a responsive design.
So for example:
I have a link with a link inside a container element (e.g. <span> ). If the text is long, it will be shown in two lines, one small screen:
This is a very long text and it wraps because it very long
I want the text to display as follows:
This is a very long text...
text-overflow: ellipsis; It works if you set the width of the container, but you didnโt explicitly specify it in the flexible design and in my web application.
Here's the HTML:
<div class="itm-title"> <a href="/friendly-url-sample/">This is a very long sentence and I don't want it to wrap, I want three dots</a> </div>
Is there a solution in CSS or jQuery that can solve this? thanks.
css css3
Idan shechter
source share