|
Posted by Jonathan N. Little on 10/17/06 18:14
John Dalberg wrote:
> I have this simple table below. I can't get the input box (text field) to
> display smaller. I tried different cell widths, I used smaller font and I
> set both the cell width and the text field but I can't decrease the width.
> Should't I be able to set the second cell width to any width? Right now in
> Firefox, the input box is over 100px and it should be much less.
Why do you think so? You have neither styled the INPUT element to a
specific width nor sized the field with the attribute SIZE for the
character count. All you have done is shrunk the text size to a tiny 9px!
> When I
> remove the tetx field, the cell width is fine. What are the constraints of
> a text field?
>
>
>
>
> <table border="0" cellpadding="0" cellspacing="0" style="border:thin
> #000099 solid" width="400">
> <tr>
> <td width="95%" bgcolor="#FFFFCC">Enter Number :</td>
> <td width="5%" bgcolor="#CCFFCC"><input type="text" name="textfield"
> style="font-family:Verdana, Arial, Helvetica, sans-serif;
> font-size:9px"></td> </tr>
> </table>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|