I want to truncate text according to div size
this is the code snippet:
<div style="padding-left:10px; width:200px; border:1px solid #000000">
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
when an unknown printer took a galley of type and scrambled it to make a type specimen book.
It has survived not only five centuries
</div>
this is my output:
i want my output to be like:
thank you