I have a textarea on my page and when I load the page I want all the text in the textarea to show without me having to press down arrow or carriage return to move the cursor down to the end of the text. Is there some kind of css I can provide to size the textarea appropriately when the page renders?
When I load the page here is what I see.
here is what I want to see.
here is my razor code and the rendered html
@Html.TextAreaFor(model => model.SelfSummary, new { @id = "profileCatchPhrase", @class = "form-control catchPhraseHideDontTakeUpSpace input-lg", @style = "min-height: 64px; max-height: 460px; margin-top: 10px; max-width: 500px;" })
<textarea name="SelfSummary" class="form-control input-lg valid" id="profileCatchPhrase" aria-invalid="false" aria-describedby="profileCatchPhrase-error" style="height: 188px; margin-top: 10px; min-height: 64px; max-height: 460px; max-width: 500px;" rows="2" cols="20" data-val="true" data-val-maxlength-max="1000" data-val-maxlength="Max length is 1000">test summary!
test summary 1!
test summary 2!
test summary 3 with lots of stuff #(*@#@()*!
testing to the end if the line alskdjasdkj(*&(#*&$Q#)(*as;dasdkl
what now!</textarea>