Is there a way to vertically center text in a @Html.TextAreaFor?
Below is the HTML code:
<table class="width100percent padding0Margin0">
<tr class="height35">
<td class="width150">
Description
</td>
<td class="textValignMiddle">
@Html.TextAreaFor(m => m.Job.Description, new { @class = "width646 height25", @placeholder = "Enter " + @Model.GetNameJob + " description" })
</td>
</tr>
</table>
I have tried various CSS styles to align the text vertically but haven't achieved the desired result.
.textBottom{vertical-align: text-bottom;}
.textTop{vertical-align:text-top;}
.textVerticalAlignTop{vertical-align:top;}
.textBaseLine{vertical-align:baseline; }
.textValignBottom{vertical-align:bottom;}
.textValignMiddle {vertical-align: middle;}
Could adding padding-top and adjusting the size of the textbox be the only solution for this issue?