title: TextAreaFor Cannot Set Width
body: <p>I cannot set the width or cols in atextarea. Rows/Height works just fine. can someone please help thanks!</p>
  
  <pre><code>@using (Html.BeginForm())
  {
      @Html.AntiForgeryToken()
  
      @Html.ValidationSummary(true)
      @Html.TextAreaFor(model =&gt; model.Comments, new {cols=60, rows=10})
      @Html.HiddenFor(model =&gt; model.UserName, new { UserName = @User.Identity })
  
      &lt;div class="form-group"&gt;
          &lt;div class="col-md-10"&gt;
              &lt;input type="submit" value="Submit Feedback" class="btn btn-default" /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  }
  </code></pre>
  
  <p>Any advice or tips would be greatly appricated! thanks </p>
  
  <p>The HTML rendered is (I removed name and value text for security reasons:</p>
  
  <pre><code>&lt;form action="/feedback/create" method="post"&gt;&lt;input name="" type="hidden" value=""&gt;        
  &lt;textarea name="Comments" id="Comments" rows="10" cols="60"&gt;&lt;/textarea&gt;
  &lt;input name="UserName" id="UserName" type="hidden" value="" username="System.Security.Principal.WindowsIdentity"&gt;        
  
  &lt;div class="form-group"&gt;
          &lt;div class="col-md-10"&gt;
              &lt;input class="btn btn-default" type="submit" value="Submit Feedback"&gt;
          &lt;/div&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I can set the width of the textarea via CSS but only to a certain exten ( maybe 15% of the screen)</p>