I was displaying the reply message in my web app as shown below with CSS styling as below the picture.
this is the CSS styling of above
.replyMessage {
width: 100%;
padding-left: 0px;
max-width: 500px;
min-width: 100px;
word-break: break-all;
max-height: 85px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
but I need to display the ellipsis after three lines as shown below
Any help really appreciated.
version: Angular 5
this below stying helped me to solve issue in chrome
.replyMessage {
width: 100%;
padding-left: 0px;
max-width: 500px;
min-width: 100px;
word-break: break-word;
max-height: 85px;
overflow: hidden;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
line-height: 21px;
display: -webkit-box;
}
but this is not working fine in firefox