I want to wrap a text within only two lines inside div of specific width. If text goes beyond the length of two lines then I want to show elipses. Is there a way to do that
Try something like this: http://jsfiddle.net/6jdj3pcL/1/
Here is a paragraph with a lot of text ... p { line-height: 1.5em; height: 3em; overflow: hidden; width: 300px; } p::before { content: '...'; float: right; margin-top: 1.5em; }
Here is a paragraph with a lot of text ...