I am trying to show a long text in block of div and want that if a text exceed to div height then need to show a "..." otherwise fill a whole text in to a block. But problem is that, using css text-overflow:ellipsis will cut the whole long text into one line text and place these dots where more text can be written into in below space.
<div class="hide-long-text">
Now a long wooooooooooo ooooooooooooooooooooord
.hide-long-text {
height: 80px;
width: 110px;
border: 1px solid #adb8c0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
here is a fiddler link Can someone give me a hint how i can use this free space and when text exceed the div height then show "..."