I have this element that contains a string which exceeds the space available. Text should be displayed on two lines only. I need text-overflow: ellipsis
to be triggered but it's not happening here. What am I doing wrong?
<div><span>IpsumLorem Traborditum orb Porfalohyrm</span></div>
div{
text-overflow: ellipsis;
overflow: hidden;
float: left;
line-height: 20px;
padding: 8px 6px 6px;
height: 44px;
width: 133px;
}