mtdowling
04-24-2006, 01:30 PM
On my webpage I have a textbox that holds the email address of someone logging in. I specify the textbox to have a witdth of 98% of a TD and the TD it's in has a width of 68% of a table. When the user comes to the page where the textbox is, a cookie places the value of the last email address entered into the textbox. If the email address is really long the TD and the textbox get blown up to the actual size of the email string, but I just want 14 letters to be visible and the rest to be just hidden to where you would have to move the text cursor to see or edit the rest... Here is the code:
<td width=68% style="table-layout: fixed;">
<input style="height:16px; font-size:9px; border-color:<?PHP print($CS[$LeftWindowHeader]); ?>; border-width:1px; width:98%" type="text" name="loginemail" value="<?PHP print($_COOKIE['gb_username']); ?>" size=14>
</td>
<td width=68% style="table-layout: fixed;">
<input style="height:16px; font-size:9px; border-color:<?PHP print($CS[$LeftWindowHeader]); ?>; border-width:1px; width:98%" type="text" name="loginemail" value="<?PHP print($_COOKIE['gb_username']); ?>" size=14>
</td>