Is there a way to cut a text inside div using css to be like this?
Hello World! Hello World!
Hello World! Hello Wor...
What i mean here is to be 2 line of text then dots at the end instead of having one line then dots
Like this https://jsfiddle.net/cf8q6o3n/ In this link I have code but it's 1 line text then dots. I need it 2 line of text then dots.
Here is my code:
HTML:
<div class="div1">
Hello World. Hello World. Hello World.
</div>
CSS
.div1 {width:90px;border:1px solid #000;white-space:nowrap;overflow:hidden !important;text-overflow:ellipsis;}