FancyPrairie
Programmer
I have a table with a span tag and an input tag. I want to clip the values in both tags. That is, if the value I put in the span tag and/or input tag is too long to display in the tag I want it clipped with an ellipsis print at the end.
Should look something like this:
Select... My input box is trun...
I had this working at one time but I must have changed something because although the span tag works, the input tag does not.
Here's the code:
Should look something like this:
Select... My input box is trun...
I had this working at one time but I must have changed something because although the span tag works, the input tag does not.
Here's the code:
Code:
<table cellpadding='0' cellspacing='0' border='1' style="border: red; width: 1px;TABLE-LAYOUT: fixed; OVERFLOW: visible; WIDTH: 155px ">
<tr>
<td style="width: 45px; height: 25px;">
<span style="OVERFLOW: hidden; WHITE-SPACE: nowrap; TEXT-OVERFLOW: ellipsis; display:inline-block;background-color:Transparent;border-color:Transparent;border-width:0px;height:23px;width:45px;">Select Something:</span>
</td>
<td style="width: 145px; height: 25px;">
<input id="Text2" style="OVERFLOW: hidden; WHITE-SPACE: nowrap; TEXT-OVERFLOW: ellipsis; display:inline-block; width: 145px; height: 25px;" />
</td>
</tr>
</table>