i am trying to have a div element, which when i insert a text inside it, the div element's CSS style can break a long text into multiple lines and also when it reaches the div height, the end of the last line gets ellipsis(...)
my div has a static height and width in pixels. my problem is that i have tried using "overflow-wrap:break-word", and the ellipsis wont work, but without it, the ellipsis works but the div will only have one line, which i want multiple lines,not one.
<div style="overflow:hidden;white-space:no-wrap;text-overflow:ellipsis;overflow-wrap: break-word;height:50px;width:400px;"></div>