title: creating Horizontal Form in Bootstrap 4
body: <p>I am a beginner in <strong>Bootstrap</strong> and i am working on styling forms with bootstrap. I am trying to create a horizontal form using <code>form-horizontal</code> class of bootstrap <strong>BUT</strong> label and textfield are not displayed in same horizontal line. </p>
  
  <p>I have seen a tutorial about it and i copied the same exact code from that tutorial but it didn't work for me whereas it worked for the instructor of the tutorial.</p>
  
  <p>Need help figuring out the problem</p>
  
  <p>Here's the relevant code <a href="https://codepen.io/anon/pen/boYNPa" rel="noreferrer">codepen link</a></p>
  
  <pre><code>&lt;div class="row"&gt;
          &lt;div class="col-sm-6"&gt;
  
            &lt;form class="form-horizontal"&gt;
  
              &lt;div class="form-group"&gt;
                &lt;label class="col-sm-4 control-label"&gt;First Name&lt;/label&gt;
                &lt;div class="col-sm-8"&gt;
                  &lt;input type="text" class="form-control"/&gt;
                &lt;/div&gt;
              &lt;/div&gt;
  
            &lt;/form&gt;
  
        &lt;/div&gt;&lt;!--end of column--&gt;
  &lt;/div&gt;&lt;!--end of row--&gt;
  </code></pre>