title: Justify thumbs horizontally
body: <p>Check this code below</p>
  
  <p>HTML:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function(){
   var $this=$('&lt;a href="#"&gt;&lt;img src="http://dummyimage.com/150x150/444/fff" alt=""/&gt;&lt;/a&gt;');
    for (var i=0;i&lt;=9;i++){
     $("#thumbs").append($this.clone());
    }
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#thumbs {   
      width: 100%;
      margin-top:90px;
       text-align: justify;
      -ms-text-justify: distribute-all-lines;
      text-justify: distribute-all-lines;
  }
  #thumbs a {
      vertical-align: top;
      display: inline-block;
      *display: inline;
      zoom: 1;
  }
  .stretch {
      width: 100%;
      display: inline-block;
      font-size: 0;
      line-height: 0
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div id="thumbs"&gt;
      &lt;a href="#"&gt;&lt;img src="http://dummyimage.com/150x150/444/fff" alt=""/&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="http://dummyimage.com/150x150/444/fff" alt=""/&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="http://dummyimage.com/150x150/444/fff" alt=""/&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="http://dummyimage.com/150x150/444/fff" alt=""/&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="http://dummyimage.com/150x150/444/fff" alt=""/&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="http://dummyimage.com/150x150/444/fff" alt=""/&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="http://dummyimage.com/150x150/444/fff" alt=""/&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="http://dummyimage.com/150x150/444/fff" alt=""/&gt;&lt;/a&gt;
      &lt;a href="#"&gt;&lt;img src="http://dummyimage.com/150x150/444/fff" alt=""/&gt;&lt;/a&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Anchor tags gets justified when added directly in html page but not gets justified when added from javascript.</p>
  
  <p>Any suggestions? Don't forget to check this <a href="http://jsfiddle.net/JTcGZ/1596/" rel="nofollow">fiddle</a> </p>