title: Bootstrap form alignment, won't pull right
body: <p>I have a form that does not want to align itself.</p>
  
  <p>I have tried to show lines how I want the alignment on the attached image, hope it helps.</p>
  
  <p>I want the right hand textboxes to pull-right (as per the blue line on the image, does not work when i add it to the class), and the drop down boxes to fill so that they are the same size as the textboxes (as per the green lines on the image).</p>
  
  <p><a href="https://i.stack.imgur.com/lS5z4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lS5z4.png" alt="enter image description here"></a></p>
  
  <p>Code below :)</p>
  
  <pre><code>&lt;div class="container" style="margin-top: 75px;"&gt;
  
          &lt;div class="row"&gt;
              &lt;div class="col-md-5" style="padding-bottom: 50px;"&gt;
  
                  &lt;h2&gt;Ansök nu och spara tusentals kronor&lt;/h2&gt;
  
                  Fyll i dina uppgifter och jämför lån från Sveriges ledande banker. Du kan låna upp till 500 000kr från 3,5% i ränta.&lt;br /&gt;
                  &lt;br /&gt;
  
                  Endast en kreditupplysning görs genom Conteo, men sin ansökan om lån skickas till alla våra samarbetsbanker. En budgivning mellan bankerna påbörjas och du får resultatet inom 24 timmar.
  
  
              &lt;/div&gt;
              &lt;div class="col-md-2"&gt;.col-md-2&lt;/div&gt;
              &lt;div class="col-md-5"&gt;
  
                  &lt;div class="loan-form"&gt;
  
                      &lt;h3&gt;Hur mycket vill du låna?&lt;/h3&gt;
                      &lt;div&gt;
                          &lt;b&gt;Lånebelopp&lt;/b&gt;&lt;span class="pull-right"&gt;&lt;span style="font-weight: bold;" id="loanamount"&gt;100 000&lt;/span&gt; kr&lt;/span&gt;&lt;br /&gt;
                          &lt;div id="mainloan_slider"&gt;&lt;/div&gt;
                      &lt;/div&gt;
                      &lt;br /&gt;
                      &lt;br /&gt;
                      &lt;div&gt;
                          &lt;b&gt;Återbetalningstid&lt;/b&gt;&lt;span class="pull-right"&gt;&lt;span style="font-weight: bold;" id="repaymenttime"&gt;8&lt;/span&gt; år&lt;/span&gt;&lt;br /&gt;
                          &lt;div id="repaymenttime_slider"&gt;&lt;/div&gt;
                      &lt;/div&gt;
  
                      &lt;br /&gt;
  
                      &lt;hr style="background-color: #E6C485; height: 2px;" /&gt;
  
                      &lt;div class="form-inline"&gt;
  
                          &lt;div class="form-group row"&gt;
                              &lt;div class="col-md-6"&gt;
                                  &lt;asp:TextBox ID="txtFirstname" runat="server" CssClass="form-control loan-form-textbox" placeholder="förnamn"&gt;&lt;/asp:TextBox&gt;
                              &lt;/div&gt;
                              &lt;div class="col-md-6"&gt;
                                  &lt;asp:TextBox ID="txtLastname" runat="server" CssClass="form-control loan-form-textbox pull-right" placeholder="efternamn"&gt;&lt;/asp:TextBox&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group row" style="margin-top:25px;"&gt;
                              &lt;div class="col-md-6"&gt;
                                  &lt;asp:TextBox ID="TextBox3" runat="server" CssClass="form-control loan-form-textbox" placeholder="personnummer"&gt;&lt;/asp:TextBox&gt;
                              &lt;/div&gt;
                              &lt;div class="col-md-6"&gt;
                                  &lt;asp:TextBox ID="TextBox4" runat="server" CssClass="form-control loan-form-textbox pull-right" placeholder="email"&gt;&lt;/asp:TextBox&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group row" style="margin-top:25px;"&gt;
                              &lt;div class="col-sm-6"&gt;
                                  &lt;asp:TextBox ID="TextBox1" runat="server" CssClass="form-control loan-form-textbox" placeholder="hemnummer"&gt;&lt;/asp:TextBox&gt;
                              &lt;/div&gt;
                              &lt;div class="col-sm-6"&gt;
                                  &lt;asp:TextBox ID="TextBox2" runat="server" CssClass="form-control loan-form-textbox pull-right" placeholder="mobilnummer"&gt;&lt;/asp:TextBox&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group row" style="margin-top:25px;"&gt;
                              &lt;div class="col-sm-6"&gt;
                                  &lt;asp:DropDownList ID="ddCivilstand" runat="server" CssClass="form-control loan-form-textbox"&gt;
                                      &lt;asp:ListItem Text="Gift" Value="1"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="Singel" Value="2"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="Skild" Value="3"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="Änka/Änkeman" Value="4"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="Separerad" Value="5"&gt;&lt;/asp:ListItem&gt;
                                  &lt;/asp:DropDownList&gt;
                              &lt;/div&gt;
                              &lt;div class="col-sm-6"&gt;
                                  &lt;asp:DropDownList ID="ddEmploymentType" runat="server" CssClass="form-control loan-form-textbox"&gt;
                                      &lt;asp:ListItem Text="Annat" Value="0"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="Fast anställd" Value="1"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="Egen företagare" Value="2"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="Visstidsanställd" Value="3"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="Pensionär" Value="4"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="Student" Value="5"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="Arbetslös" Value="6"&gt;&lt;/asp:ListItem&gt;
                                  &lt;/asp:DropDownList&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group row" style="margin-top:25px;"&gt;
                              &lt;div class="col-sm-6"&gt;
                                  &lt;asp:DropDownList ID="ddChildren" runat="server" CssClass="form-control loan-form-textbox"&gt;
                                      &lt;asp:ListItem Text="1" Value="1"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="2" Value="2"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="3" Value="3"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="4" Value="4"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="5" Value="5"&gt;&lt;/asp:ListItem&gt;
                                  &lt;/asp:DropDownList&gt;
                              &lt;/div&gt;
                              &lt;div class="col-sm-6"&gt;
                                  &lt;asp:DropDownList ID="ddAccomnodationType" runat="server" CssClass="form-control loan-form-textbox"&gt;
                                      &lt;asp:ListItem Text="Annat" Value="1"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="Hyresrätt" Value="2"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="Bostadsrätt" Value="3"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="Inneboende" Value="4"&gt;&lt;/asp:ListItem&gt;
                                      &lt;asp:ListItem Text="Villa/Radhus" Value="5"&gt;&lt;/asp:ListItem&gt;
                                  &lt;/asp:DropDownList&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group row" style="margin-top:25px;"&gt;
                              &lt;div class="col-md-6"&gt;
                                  &lt;asp:TextBox ID="TextBox5" runat="server" CssClass="form-control loan-form-textbox" placeholder="boendekostnad"&gt;&lt;/asp:TextBox&gt;
                              &lt;/div&gt;
                              &lt;div class="col-md-6"&gt;
                                  &lt;asp:Button ID="btnApply" runat="server" Text="Ansök nu" CssClass="btn btn-primary pull-right" /&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
  
                  &lt;/div&gt;
  
  
  
              &lt;/div&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>