I want all the text to end with "...", but it only works for the inner div:
<div>Test test test test test test<div>asdasdasdasdasd</div></div>
div {
border: solid 2px blue;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 40px;
}
http://jsfiddle.net/JU8Up/
is there any solution so that the text contained in the outer div gets "..."?
edit: this seems to be a chrome issue, but still the fix in the answer below works
source
share