Here is my code:
<%= Html.TextArea("txtMyTextArea", new { @style = "width: 100%; height:100%", @resize="horizontal" })%>
and it’s not working. Why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This can be accomplished more easily using the
max-heightattribute and setting it equal to theheight. See this jsFiddle example.You can also set a horizontal-constraint, by adding a
max-widthattribute. See this jsFiddle example.I believe in your code this would ‘translate’ as: