How do I set the width and height of a textarea using CSS?
You left off px
:
.editor-field textarea {
width : 400px;
height : 100px;
}
try to use TextAreaFor
helper method and set cols
and rows
html property
Sample
@Html.TextAreaFor(model=>model.MyMultilineText, new {rows="6", cols="10"})
I Hope this help. Regards.