title: Horizontal form + inline form
body: <p>I'm trying to make the form user profile on a bootstrap with horizontal form and inline form, but they do not work together.</p>
  
  <p><a href="https://i.stack.imgur.com/RaLOL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RaLOLm.png" alt="It is a normal width"></a></p>
  
  <p><a href="https://i.stack.imgur.com/aRaJS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aRaJSm.png" alt="It is a small window width"></a></p>
  
  <p>It is my code:</p>
  
  <pre><code>&lt;%= form_for @user, url: edit_project_user_path, html: { method: :put, class: "form-horizontal", role: "form" } do |user_fields| %&gt;
  
            &lt;div class="row"&gt;
              &lt;div class="col-sm-12 margin-top-20 margin-bottom-20"&gt;
                &lt;%= image_tag("user_no_foto.jpg", alt: "Avatar", class: "img-circle avatar-lg center-block") %&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="row"&gt;
              &lt;div class="col-sm-9 col-sm-offset-3 margin-bottom-20 text-muted"&gt;
                &lt;h4&gt;Аккаунт&lt;/h4&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="form-group"&gt;
              &lt;label for="inputEmail" class="col-sm-3 control-label"&gt;Эл. почта*&lt;/label&gt;
              &lt;div class="col-sm-7"&gt;
                &lt;input type="email" class="form-control" id="inputEmail" placeholder="Email"&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="form-group"&gt;
              &lt;label for="inputPassword" class="col-sm-3 control-label"&gt;Пароль*&lt;/label&gt;
              &lt;div class="col-sm-7"&gt;
                &lt;input type="email" class="form-control" id="inputPassword" placeholder="Email"&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="col-sm-12 border-row margin-bottom-40 margin-top-40"&gt;&lt;/div&gt;
            &lt;div class="row"&gt;
              &lt;div class="col-sm-9 col-sm-offset-3 margin-bottom-20 text-muted"&gt;
                &lt;h4&gt;Информация о пользователе&lt;/h4&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="form-group"&gt;
              &lt;label for="inputLastName" class="col-sm-3 control-label"&gt;Фамилия*&lt;/label&gt;
              &lt;div class="col-sm-7"&gt;
                &lt;input type="email" class="form-control" id="inputLastName" placeholder="Email"&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="form-group"&gt;
              &lt;label for="inputFirstName" class="col-sm-3 control-label"&gt;Имя*&lt;/label&gt;
              &lt;div class="col-sm-7"&gt;
                &lt;input type="email" class="form-control" id="inputFirstName" placeholder="Email"&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="form-group"&gt;
              &lt;label for="inputMiddleName" class="col-sm-3 control-label"&gt;Отчество&lt;/label&gt;
              &lt;div class="col-sm-7"&gt;
                &lt;input type="email" class="form-control" id="inputMiddleName" placeholder="Email"&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="form-group"&gt;
              &lt;label for="inputEmail3" class="col-sm-3 control-label"&gt;Дата рождения*&lt;/label&gt;
              &lt;div class="col-sm-7"&gt;
                &lt;input type="email" class="form-control" id="inputEmail3" placeholder="Email"&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="col-sm-12 border-row margin-bottom-40 margin-top-40"&gt;&lt;/div&gt;
            &lt;div class="row"&gt;
              &lt;div class="col-sm-9 col-sm-offset-3 margin-bottom-20 text-muted"&gt;
                &lt;h4&gt;Дополнительные адреса эл. почты&lt;/h4&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="form-group"&gt;
              &lt;span class="col-sm-3 control-label"&gt;Доп. почта&lt;/span&gt;
              &lt;div class="col-sm-7"&gt;
                &lt;div class="form-group row"&gt;
                  &lt;label for="inputKey" class="sr-only"&gt;Key&lt;/label&gt;
                  &lt;div class="col-sm-3"&gt;
                    &lt;input type="text" class="form-control" id="inputKey" placeholder="Key"&gt;
                  &lt;/div&gt;
                  &lt;label for="inputValue" class="sr-only"&gt;Value&lt;/label&gt;
                  &lt;div class="col-sm-3"&gt;
                    &lt;input type="text" class="form-control" id="inputValue" placeholder="Value"&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;
        &lt;% end %&gt;
  </code></pre>
  
  <p>Why it lost the interval between inputs?</p>