I have element:
<div class="show">Lorem ipsum dolor sit .</div>
css:
.show {
height: 300px;
width: 600px;
}
so before this div is rendered, is there a way to know how much chars count this div can hold. I have multiple line and my div contains multiple elements inside it ex:
https://jsfiddle.net/pvyk3etw/
I have tried so far this : count how many characters fit in a DIV
and also used line-clamp
but because my goal is not just to add ellipsis, it also needs some text next to it- like ...more simple css overflow property does not work.
in simple words: I have
height = 300;
width= 600;
based on above numbers can we in anyways count how character count that div container can hold?
please do let me know for any resourses I may missed to check out. thx