I have a paragraph where I am trying to truncate it by bootstrap class text-truncate. In output I am getting only one line.
<p class="text-truncate" style="max-width:300px;">
Resize the browser window to see that its width (max-width) will change at different breakpoints.Resize the browser window to see that its width (max-width) will change at different breakpoints
</p>
Getting output
Resize the browser window to see that its wid...
Expecting output
Resize the browser window to see that its width (max-width)
will change at different breakpoints...
In inline css I have tried -webkit-line-clamp: 2, getting same result. How can I get multiple line using bootstrap text-truncate ?