Css overflow text displayed in few lines without word break
问题 I have some long text that is displayed within a div this div has a fixed width and height. I want the text to be displayed on a few lines (as the div height) and that the sentence words will not break (word prefix in one line and the continue in the next line) furthermore I want to add ellipsis at the end of the last sentence. CSS: white-space: nowrap; overflow: hidden; text-overflow: ellipsis; but this displays the text in one line even though the div contains a few lines. Second option: