ecain
ecain

Reputation: 1302

ASP.NET Core - Change height of form text box

I'm working on a "contact me" form in ASP.NET Core that will have a name, email, subject and message field. I have a few chunks of code like this in my view for the text boxes:

<div class="form-group">
    <label asp-for="Message" class="col-md-2 control-label"></label>
    <div class="col-md-10">
        <input asp-for="Message" class="form-control"/>
        <span asp-validation-for="Message" class="text-danger"></span>
    </div>
</div>

For this message text box, I would like the the text box to be larger vertically than my previous ones. How do I do this without changing the other boxes?

Upvotes: 0

Views: 2182

Answers (1)

Stoycho Trenchev
Stoycho Trenchev

Reputation: 555

You just need to change input field into textarea for the message. Textarea element has multiple rows.

Upvotes: 1

Related Questions