title: Image inside inline-block div pushes the div down
body: <p>I have two <code>inline-block</code> div elements. When i add an image inside second <code>div</code>, it pushes the div below the first <code>div</code>.</p>
  
  <p>Here' the visual representation of the problem</p>
  
  <p><a href="https://i.stack.imgur.com/nyJs9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nyJs9.png" alt="enter image description here"></a> </p>
  
  <p>The green colored bar should align horizontally with the blue colored side bar. I can't understand what's causing this problem.</p>
  
  <p><strong>Question</strong></p>
  
  <p>What is causing this problem and how can i fix this problem so that both <code>div</code> elements align exactly side by side.</p>
  
  <p>Here's my code</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;
          &lt;div class="top-navbar"&gt;
              &lt;img src="../Resources/images/admin dashboard/top-bar.png" alt="top nav bar" class="image-fill"/&gt;
          &lt;/div&gt;&lt;!--end of top nav bar--&gt;
  
          &lt;div class="side-bar"&gt;
              &lt;img src="../Resources/images/admin dashboard/side-bar.png" alt="side bar" class="image-fill"&gt;
          &lt;/div&gt;&lt;!--end of side bar--&gt;
  
          &lt;div class="content-area"&gt;
              &lt;div id="welcome-bar-container"&gt;
                  &lt;img src="../Resources/images/admin dashboard/welcome-bar.png" alt="dasboard text" class="image-fill"/&gt;
              &lt;/div&gt;
          &lt;/div&gt;&lt;!--end of content area--&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>CSS</strong></p>
  
  <pre><code>.side-bar {
      width: 20%;
      display: inline-block;
  }
  
  .side-bar img {
      position: relative;
      top: -4px;
  }
  
  .content-area {
      display: inline-block;
      vertical-align: top;
      background: red;
      line-height: 0;
  }
  
  #dashboard-text {
      width: 70%;
  }
  
  .image-fill {
      width: 100%;
  }
  </code></pre>