title: How do I set the width and height of a textarea using CSS?
body: <p>Here is my css:</p>
  
  <pre><code>.editor-field textarea {
      width : 400;
      height : 100px;
  }
  </code></pre>
  
  <p>Here is the markup from my view:</p>
  
  <pre><code>        &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.Visit.BehavioralObservations)
              @Html.ValidationMessageFor(model =&gt; model.Visit.BehavioralObservations)
          &lt;/div&gt;
  </code></pre>
  
  <p>And here is the annotation of my model showing the MultilineText attribute:</p>
  
  <pre><code>    [DisplayName("Behavioral Observations")]
      [DataType(DataType.MultilineText)]
      public string BehavioralObservations { get; set; }
  </code></pre>
  
  <p>Why can't I set the width of this textarea? I can adjust the height in my CSS and it looks correct (verified with Chrome Developer tools) but the width doesn't change. Chrome says the width is an invalid property value and has a strike-through applied to the property along with a yellow triangle displayed adjacent to the property. </p>
  
  <p>FYI, this is not limited to Chrome. IE8 has the same issue.</p>
  
  <p>Thoughts? How do I fix this? Thanks!</p>