Knight Network
Knight Network

Reputation: 59

How do I make the input box bigger?

I'm trying to make this comment box bigger but can't seem to figure out how. Just wondering if you guys could help. This is what I've tried to do.

<form action="" target="_blank">
  <br>
  First name:<br>
  <input type="text" name="firstname" value="">
  <br>
  Last name:<br>
  <input type="text" name="lastname" value="">
  <br><br>
  Comment:<br>
  <input type="text" rows="4" cols="50" name="comment" value="">
  <br><br>
  <input type="submit" value="Submit">
</form> 

Upvotes: 2

Views: 11731

Answers (1)

Jon Uleis
Jon Uleis

Reputation: 18649

You'll want to use the textarea attribute for that kind of larger, multi-line text field.

<form action="" target="_blank">
  <br>
  First name:<br>
  <input type="text" name="firstname" value="">
  <br>
  Last name:<br>
  <input type="text" name="lastname" value="">
  <br><br>
  Comment:<br>
  <textarea rows="4" cols="50" name="comment"></textarea>
  <br><br>
  <input type="submit" value="Submit">
</form> 

Upvotes: 7

Related Questions