Reputation: 471
I have a simple form, Problem is why the cursor of the third text field is in the middle?
I want to be in the top left of the text field.
Here is my stylesheet
:
.largeTextField{
background-color: white;
border: 1px solid rgb( 186, 186, 186 );
border-radius: 5px;
width: 330px;
height: 100px;
float: left;
}
Upvotes: 1
Views: 4334
Reputation: 3304
Using input
will cause the larger box to be used as a 1-line entry. You will need to define a textarea
to allow multiple lines, like this:
<label>Content</label><br>
<textarea name="message" rows="10" cols="30"></textarea>
You can read more about inputs
here.
Upvotes: 2
Reputation: 9739
Instead a <input>
set a <textarea>
<input>
- single line (row)
<textarea>
- multiple lines (rows)
Upvotes: 4