So, I have the following script that set the ellipsis in the text to two lines. Then I want to have an βAdvancedβ link with text.
http://jsfiddle.net/csYjC/2876/
So, if our text has more than two lines, it should look like this:

It is right. But:

This is incorrect (must be embedded in the text).
The code is as follows:
<div class="text"> <div>Lorem ipsum dolor sit amet, Lorem Lorem ipsum dolor sit amet, Lorem ipsum dolor sit amet, Lorem Lorem i</div> <a href="#">More</a> </div>
And css:
.text{ display: inline; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; line-height: 24px; max-height: 48px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .text a { position: absolute; }
I think it should be easy ... Thanks in advance.
source share