title: ASP .NET MVC How to increase the width of an inputfield with @Html.EditorFor
body: <p>I just cant fix something that seems so easy. 
  I want a textbox (editorfor) for a model property and I would like to increase its width but nothing is happening. I'm using the code as listed below. I tried setting the width to 500px but nothing happens. Ideally I would like the textbox to stretch over the full width of the container. Any ideas?</p>
  
  <pre><code>@if (Model.isAnswerVisible)
      {
          &lt;div class="form-group"&gt;
              &lt;div class="col-md-10"&gt;
                  &lt;div class="input-group"&gt;
                      &lt;span class="input-group-addon"&gt;@Model.AreaNameAnswer&lt;/span&gt;
                      @Html.EditorFor(model =&gt; model.Answer, new { htmlAttributes = new { id = "answer", style = "width: 500px", onkeyup = "limitCharacters()", @class = "form-control" } })
                  &lt;/div&gt;
  
                  @Html.ValidationMessageFor(model =&gt; model.Answer, "", new { @class = "text-danger" })
                  &lt;span class="glyphicon glyphicon-question-sign" aria-hidden="true" title="Leg kort uit wat jouw antwoord is op de vraag"&gt;&lt;/span&gt;
                  &lt;label id="lblCountAnswer" style="color: green"&gt;@Model.MaxTokensAnswer&lt;/label&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      }
  </code></pre>