title: How to make Bootstrap Carousel stay fixed right below navbar?
body: <p>Currently my carousel seems to go to the top of the page. I am using a navbar-fixed-top, so obviously the navbar hides the top part of the carousel. How can I make it so that the carousel stays affixed directly below the navbar? Adding a simple padding wouldnt work as when using a smaller screen, the navbar collapses and is a bit of a different height than when its not collapsed.</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;div id="myCarousel" class="carousel slide" data-ride="carousel"&gt;
    &lt;div class="container"&gt;
      &lt;ol class="carousel-indicators"&gt;
        &lt;li data-target="#myCarousel" data-slide-to="0" class="active"&gt;&lt;/li&gt;
        &lt;li data-target="#myCarousel" data-slide-to="1"&gt;&lt;/li&gt;
        &lt;li data-target="#myCarousel" data-slide-to="2"&gt;&lt;/li&gt;
        &lt;li data-target="#myCarousel" data-slide-to="3"&gt;&lt;/li&gt;
      &lt;/ol&gt;
  
  
      &lt;div class="carousel-inner"&gt;
        &lt;div class="item active"&gt;
          &lt;img src="/images/p51blueprint.jpg" alt="P-51" width="100%"&gt;
  
        &lt;/div&gt;
        &lt;div class="item"&gt;
          &lt;img src="/images/f-18-hornet.jpg" alt="F-18" width="100%"&gt;
  
        &lt;/div&gt;
        &lt;div class="item"&gt;
          &lt;img src="/images/p51blackandwhite.jpg" alt="P-51" width="100%"&gt;
  
        &lt;/div&gt;
        &lt;div class="item"&gt;
          &lt;img src="/images/B-52-Stratofortress-infographic.jpg" alt="B-52" width="100%"&gt;
  
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
    &lt;!-- Control arrows --&gt;
    &lt;a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev"&gt;
      &lt;span class="glyphicon glyphicon-chevron-left" aria-hidden="true"&gt;&lt;/span&gt;
      &lt;span class="sr-only"&gt;Previous&lt;/span&gt;
    &lt;/a&gt;
    &lt;a class="right carousel-control" href="#myCarousel" role="button" data-slide="next"&gt;
      &lt;span class="glyphicon glyphicon-chevron-right" aria-hidden="true"&gt;&lt;/span&gt;
      &lt;span class="sr-only"&gt;Next&lt;/span&gt;
    &lt;/a&gt;
  
  
  &lt;/div&gt;
  </code></pre>