title: (CSS-Javascript-Jquery) How to make thumbnails slider for a carousel?
body: <p>I'm trying to make a carousel with thumbnails navigation. Something like  <a href="http://www.jssor.com/demos/image-slider-2.slider" rel="nofollow">this Carousel</a>
  Due to I don't know how much thumbnails there will be, it should be something like a slider, with previous and next buttons.
  I tried with an unordered list but only the first li is shown. What is wrong with this code?</p>
  
  <p>Here is my code: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.carousel {
    position: relative;
    margin: 0 auto;
    top: 0px;
    left: 0px;
    width: 600px;
    height: 300px;
    overflow: hidden;
  }
  .carousel img.main
  .previous {
    position: absolute;
    left: 0px;
    height: 100%;
    width: 30px;
    opacity: 0;
    background-color: lightblue;
  }
  .previous:hover {
    opacity: 0.5;
  }
  .next {
    position: absolute;
    right: 0px;
    height: 100%;
    width: 30px;
    opacity: 0;
    background-color: lightblue;
  }
  .next:hover {
    opacity: 0.5;
  }
  .thumbnavigator {
    position: absolute;
    left: 0px;
    bottom: 0px;
    height: 60px;
    width: 100%;
    opacity: 0;
    background-color: purple;
  }
  .thumbnavigator:hover {
    opacity: 0.5;
  }
  .thumbnavigator img {
    height: 60px;
    width: auto;
  }
  ul li {
    list-style-type: none;
    display: inline;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="carousel"&gt;
    &lt;img class="main" src="http://www.car-magazine.it/wp-content/uploads/2014/12/Ferrari-Sergio3_4antSX.jpg" /&gt;
  
    &lt;div class="previous"&gt;
    &lt;/div&gt;
  
    &lt;div class="next"&gt;
    &lt;/div&gt;
  
    &lt;div class="thumbnavigator"&gt;
      &lt;!-- Thumbnails list slider --&gt;
        &lt;ul&gt;
    &lt;li&gt;
      &lt;img src = "http://www.ferrariofontario.com/wp-content/uploads/2014/07/La_Ferrari.jpg" /&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;img src = "http://www.ferrariofontario.com/wp-content/uploads/2014/07/La_Ferrari.jpg" /&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;img src = "http://www.ferrariofontario.com/wp-content/uploads/2014/07/La_Ferrari.jpg" /&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;img src = "http://www.ferrariofontario.com/wp-content/uploads/2014/07/La_Ferrari.jpg" /&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;img src = "http://www.ferrariofontario.com/wp-content/uploads/2014/07/La_Ferrari.jpg" /&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;img src = "http://www.ferrariofontario.com/wp-content/uploads/2014/07/La_Ferrari.jpg" /&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>