title: Bootstrap CSS Carousel Not working after float?
body: <p>I am implementing a carousel in bootstrap but I am having two problems.</p>
  <ol>
  <li>It is not aligned horizontally (my div are going downwards).</li>
  <li>It is not working when I used the <code>float: left</code> property.</li>
  </ol>
  <p>I don't understand what I'm doing wrong. I've tried a variety of things to fix this, but nothing seems to work.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"&gt;
  &lt;script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"&gt;&lt;/script&gt;
  
  &lt;section class="internships" id="internships"&gt;
    &lt;div class="container headings text-center mt-4"&gt;
      &lt;h1 class="text-center font-weight-bold font-size mb-4"&gt;
        Internships&lt;/h1&gt;
    &lt;/div&gt;
    &lt;div id="carouselExampleSlidesOnly" class="carousel slide" data-bs-ride="carousel"&gt;
      &lt;div class="carousel-inner"&gt;
        &lt;div class="carousel-item active d-flex flex-row bd-highlight mb-3 "&gt;
          &lt;div class="row"&gt;
            &lt;div class="col-lg-4 col-md-4 col-12"&gt;
              &lt;div class="box"&gt;
                &lt;a href="#"&gt;&lt;img src="Images/IMG.jpg" alt="" srcset=""&gt;&lt;/a&gt;
                &lt;p&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur error tempora maxime, suscipit dolorem asperiores ! &lt;/p&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row d-flex flex-row bd-highlight mb-3"&gt;
            &lt;div class="col-lg-4 col-md-4 col-12 "&gt;
              &lt;div class="box"&gt;
                &lt;a href="#"&gt;&lt;img src="Images/IMG.jpg" alt="" srcset=""&gt;&lt;/a&gt;
                &lt;p&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur error tempora maxime, suscipit dolorem asperiores ! &lt;/p&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row"&gt;
            &lt;div class="col-lg-4 col-md-4 col-12"&gt;
              &lt;div class="box"&gt;
                &lt;a href="#"&gt;&lt;img src="Images/IMG.jpg" alt="" srcset=""&gt;&lt;/a&gt;
                &lt;p&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur error tempora maxime, suscipit dolorem asperiores ! &lt;/p&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="carousel-item"&gt;
          &lt;div class="row"&gt;
            &lt;div class="col-lg-4 col-md-4 col-12"&gt;
              &lt;div class="box"&gt;
                &lt;a href="#"&gt;&lt;img src="Images/IMG.jpg" alt="" srcset=""&gt;&lt;/a&gt;
                &lt;p&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur error tempora maxime, suscipit dolorem asperiores ! &lt;/p&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row"&gt;
            &lt;div class="col-lg-4 col-md-4 col-12"&gt;
              &lt;div class="box"&gt;
                &lt;a href="#"&gt;&lt;img src="Images/IMG.jpg" alt="" srcset=""&gt;&lt;/a&gt;
                &lt;p&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur error tempora maxime, suscipit dolorem asperiores ! &lt;/p&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row"&gt;
            &lt;div class="col-lg-4 col-md-4 col-12"&gt;
              &lt;div class="box"&gt;
                &lt;a href="#"&gt;&lt;img src="Images/IMG.jpg" alt="" srcset=""&gt;&lt;/a&gt;
                &lt;p&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur error tempora maxime, suscipit dolorem asperiores ! &lt;/p&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="carousel-item"&gt;
          &lt;div class="row"&gt;
            &lt;div class="col-lg-4 col-md-4 col-12"&gt;
              &lt;div class="box"&gt;
                &lt;a href="#"&gt;&lt;img src="Images/IMG.jpg" alt="" srcset=""&gt;&lt;/a&gt;
                &lt;p&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur error tempora maxime, suscipit dolorem asperiores ! &lt;/p&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row"&gt;
            &lt;div class="col-lg-4 col-md-4 col-12"&gt;
              &lt;div class="box"&gt;
                &lt;a href="#"&gt;&lt;img src="Images/IMG.jpg" alt="" srcset=""&gt;&lt;/a&gt;
                &lt;p&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur error tempora maxime, suscipit dolorem asperiores ! &lt;/p&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row"&gt;
            &lt;div class="col-lg-4 col-md-4 col-12"&gt;
              &lt;div class="box"&gt;
                &lt;a href="#"&gt;&lt;img src="Images/IMG.jpg" class="img-fluid" srcset=""&gt;&lt;/a&gt;
                &lt;p&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur error tempora maxime, suscipit dolorem asperiores ! &lt;/p&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;button class="carousel-control-next" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="next"&gt;&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>