I am facing an issue with the text size displayed in the image attached.
Initially, the text is not styled with CSS.
https://i.sstatic.net/00BmI.png
To meet a requirement limiting the text to two lines only, I have implemented the following CSS code:
{
display: -webkit-box;
margin: 0 auto;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
white-space : normal;
width : 100%;
}
After applying the above CSS
https://i.sstatic.net/8GhJQ.png
However, the client has requested the output to look like this:
Expecting ..
https://i.sstatic.net/vObnW.png
If anyone could provide assistance on this matter, it would be greatly appreciated.