title: Stretching a textbox in a Form in ASP.NET MVC5
body: <p>Can someone please explain to me why my textbox is not streching?? I've spent a ridiculous amount of time on this and I'm obviously missing something.</p>
  
  <p>I've looked at various answers on SO and other website but to no avail. I've tried changing attributes in using <code>style</code>, but again no luck!</p>
  
  <p>I found an article on SO but can't find it now, but I do have the sample that was provided: <a href="http://jsbin.com/liyequwena/edit?html,output" rel="nofollow noreferrer">resize example</a> and the article stated that you could simply set the <code>width:100%</code> in style, but even looking at this example is driving me nuts as both lines are stretching 100%, yet only one of them has it width set to 100%</p>
  
  <pre><code>@using System
  @model MyCompany.Models.ApplicationFormModel
  
  @{
      ViewBag.Title = "Application Form";
  }
  
  @*&lt;h2&gt;ApplicationForm&lt;/h2&gt;*@
  
  &lt;div class="row"&gt;
      @*&lt;div class="col-sm-6"&gt;*@
      &lt;div class="well bs-component"&gt;
          @using (Html.BeginForm("ApplicationForm", "Registration",
                  FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
              {
              @Html.AntiForgeryToken()
              &lt;fieldset&gt;
                  &lt;legend&gt;Application Form&lt;/legend&gt;
                  @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  
                  &lt;div class="form-group"&gt;
                          @Html.LabelFor(model =&gt; model.Name, 
                          new { @class = "control-label col-sm-2" })
                      &lt;div class="col-sm-10"&gt;
                          @Html.TextBoxFor(model =&gt; model.Name, 
                          new { @class = "form-control", style = "width:100%" })
                          @Html.ValidationMessageFor(model =&gt; model.Name, "",
                          new { @class = "text-danger" })
                      &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;div&gt;
                      &lt;div class="form-group"&gt;
                          &lt;div class="col-md-offset-2 col-md-10"&gt;
                              &lt;input type="submit" value="Save" class="btn btn-primary" /&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/fieldset&gt;
              }
      &lt;/div&gt;
      @*&lt;/div&gt;*@
  &lt;/div&gt;
  </code></pre>