Possible Duplicate:
Insert ellipsis (…) into HTML tag if content too wide
With CSS, use “…” for overflowed block of multi-lines
Hi I am trying to have a div tag to display a question this div box is constrained by size, because of the lay out specification this div tag should show as much text as it can, if it can't show all, it should have ellipsis (i.e. .....) at the end
currently i want it to display maximum 3 lines in that div
if it is more than 3 lines, than it will show ellipsis
example:
This is a question, from follow student who attended...
my current style for that div tag is the following:
.question {
max-height: 40px;
max-width:200px
text-overflow: ellipsis;
overflow: auto;
}
this doesn't do the trick... please help