I am trying to use a span for the overflow of a text.
.jdName {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
<td>
<span className="jdName">Some Name with more characters</span>
</td>
Here is the td
has alreday a fixed width. So, I have not given for the span.
But it is not showing any elipses for this.
I have to use the div for this. Can any one help me how can I use span instead of using a div?