Jump to content


Photo

Strange form behaviour


  • Please log in to reply
2 replies to this topic

#1 ReVeR

ReVeR
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts

Posted 19 March 2006 - 12:52 PM

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.
<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>


#2 earl_dc10

earl_dc10
  • Members
  • PipPipPip
  • Advanced Member
  • 71 posts

Posted 19 March 2006 - 06:13 PM

one thing you could do is use CSS max-height in conjunction with overflow
got a problem? Google helps many of those in need

#3 Gast

Gast
  • Members
  • PipPipPip
  • Advanced Member
  • 131 posts
  • LocationSouth East England

Posted 23 March 2006 - 11:01 AM

Easiest way to control textarea height and width is to use CSS:

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

OS and Internet Specs:
Windows XP (with SP2), 1680x1050, PHP 4, MySQL 3, Internet Explorer 6 &7 /FireFox 2.0/Opera 9.2

Tutorials:
Simple Introduction to AJAX and XMLHttpRequest
Creating Live Data with AJAX Making a Google Suggest like application




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users