title: css - vertical space being added on elements with display:inline-block
body: <p>I've got a series of thumbnail container elements with the css property display:inline-block but when they line up next to each other, the second element has more space at the top than the first (see attached image). Any idea why this happens? Is there a better way to line these elements up next to each other? I know that floating them solves this issue, but it seems like floating isn't the best way to go about this.</p>
  
  <p>Here's my code:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;article class="thumb_container"&gt;
      &lt;div class="thumb_content"&gt;
          &lt;img src="images/perlin.jpg" alt="Perlin Lines" class="thumb_img"/&gt;
          &lt;header class="thumb_header"&gt;Perlin Lines&lt;/header&gt;
          &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget lectus ac libero iaculis interdum nec id tortor. quis, ullamcorper id nisi. Etiam ut.
              &lt;a href="#"&gt;More...&lt;/a&gt;
          &lt;/p&gt;
      &lt;/div&gt;
  &lt;/article&gt;
  
  &lt;article class="thumb_container"&gt;
      &lt;div class="thumb_content"&gt;
          &lt;img src="images/branching.gif" alt="Branching" class="thumb_img"/&gt;
          &lt;header class="thumb_header"&gt;Branching&lt;/header&gt;
          &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget lectus ac libero iaculis interdum nec id tortor. quis, ullamcorper id nisi. 
              &lt;a href="#"&gt;More...&lt;/a&gt;
          &lt;/p&gt;
      &lt;/div&gt;
  &lt;/article&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>.thumb_container { display: inline-block; margin-left: 20px; width:220px; background: #fff; -moz-box-shadow: 1px 1px 1px rgba(10, 72, 90, 0.2); -webkit-box-shadow: 1px 1px 1px rgba(10, 72, 90, 0.2); box-shadow: 1px 1px 1px rgba(10, 72, 90, 0.2); }
  .thumb_container:first-child { margin-left: 0px; }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/fFhoO.png" alt="Top Margin Issue"></p>