Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a Form Input Field Large?

Tags:

html

css

For the form below, how could I make the input field big, like maybe 100 pixels in height by 400 pixels in length?

Thanks in advance,

John

<form action="http://www...com/sandbox/comments/comments2.php" method="post"> 
    <input type="hidden" value="'.$_SESSION['loginid'].'" name="uid">  

    <div class="addacomment"><label for="title">Add a comment:</label></div> 
    <div class="submissionfield"><input name="title" type="title" id="title" maxlength="1000"></div>  

    <div class="submissionbutton"><input name="submit" type="submit" value="Submit"></div> 
</form>
like image 285
John Avatar asked Mar 27 '10 03:03

John


4 Answers

Any reason not to use a TEXTAREA form element instead?

<textarea rows="5" cols="80" id="TITLE">
</textarea>
like image 196
Sparky Avatar answered Oct 13 '22 00:10

Sparky


you can avoid using the div by applying the class in the <input> itself

your CSS can be

.submissionfield { width: 90px; height: 390px; border: 1px solid #999999; padding: 5px; }
like image 32
pixeltocode Avatar answered Oct 13 '22 01:10

pixeltocode


You can add css to the input, like:

.input-element{
font-size: 100px; // for say a select
width: 400px;
}

or you can add height but you might have to add !important to it...

.input-element{
height: 100px !important;
width: 400px;
}
like image 25
cmac Avatar answered Oct 13 '22 00:10

cmac


Don't you need a textarea (example) field?

like image 21
Thiago Belem Avatar answered Oct 12 '22 23:10

Thiago Belem