this is my css snippet
.test{
width:150px;
height:60px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
}
what it does is..
the quick brown fo...
what i want is
the quick brown fox
jumps over the lazy
dog. the quick br...
is there anyway to do this with just CSS? or do i need to use javascript for this. If javascript is needed, anyone can teach me how? thanks!
UPDATE
i tried removing the white-space: nowrap;
and added overflow-y: hidden;
it gives me the 3 line layout but no ellipsis
.test{
width:150px;
height:60px;
overflow-y: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
}