Jump to content

Archived

This topic is now archived and is closed to further replies.

ReVeR

Strange form behaviour

Recommended Posts

Hello.
I am using forms, and i am getting large edit boxes for some reason...i can;t quite understnad....does anyone know how to shink them down? they are to big vertically....and i donno how to make it smaller even though i got row set to 1.
[code]
<form method="post" name="idform">
     <table  align="center" width="550" border="0" cellpadding="2" cellspacing="1">
     <tr>
       <td height="20" width="100">First ID:</td> <td>
        <textarea name="id1" cols="40" rows="1" id="id1"></textarea></td>
     </tr>
     <tr>
       <td width="100">Last ID:</td> <td>
        <textarea name="id2" cols="40" rows="1" id="id2"></textarea></td>
     </tr>
      <tr>
       <td width="100">&nbsp;</td>
       <td>
        <input name="btnId" type="submit" id="btnId" value="Load Products"">
     </td>
    </tr>
    </td>
    </tr>
    </table>
    </table>
    </form>
[/code]

Share this post


Link to post
Share on other sites
Easiest way to control textarea height and width is to use CSS:

[code]<textarea style="width:200px; height:100px; border:1px solid #666666"></textarea>[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.