title: Spacing between divs
body: <p>This is how my problem looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/MQsn5.png" alt="div spacings"></p>
  
  <p>As you can see, there are 3 images (divs), and I wan't to remove that black spacings between each divs.</p>
  
  <p>The most important thing is that, when I place in my css the following:</p>
  
  <pre><code>* {
  padding: 0;
  margin: 0;
  }
  </code></pre>
  
  <p>Then it looks fine: </p>
  
  <p><img src="https://i.stack.imgur.com/iinCV.png" alt="Working example"></p>
  
  <p>The problem is that I can't use <code>padding: 0</code> and <code>margin: 0</code> for my whole html, because other attributes will be broken then...</p>
  
  <p>I've tried to add: <code>padding:0</code> and <code>margin:0</code> on each div (image), but it not work.</p>
  
  <p>HTML Source:</p>
  
  <pre><code>&lt;div id="sidebar-left" class="sidebar" role="complementary"&gt;
         &lt;div class="sb-ui sb-title"&gt;&lt;h3&gt;Account&lt;/h3&gt;&lt;/div&gt;
         &lt;div class="sb-con"&gt;
              &lt;ul&gt;
          &lt;li&gt;&lt;a href="index.php?subtopic=accountmanagement"&gt;My Account&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="index.php?subtopic=accountmanagement&amp;action=logout"&gt;Logout&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
         &lt;/div&gt;
         &lt;div class="sb-ui sb-end"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My CSS:</p>
  
  <pre><code>#sidebar-left {
  margin-right: 9px;
  }
  
  .sidebar {
  width: 170px;
  position: relative;
  bottom: 7px;
  }
  
  .sidebar, #content {
  float: left;
  }
  
  .sb-title {
  height: 60px;
  text-align: center;
  }
  
  .sb-ui {
  background: url("../images/ui/sidebar_ui.png");
  }
  
  .sb-con {
  background: url("../images/ui/sidebar_bgrepeat.jpg") repeat-y;
  }
  
  .sb-end {
  height: 23px;
  background-position: bottom center;
  margin-bottom: 10px;
  }
  
  .sb-ui {
  background: url("../images/ui/sidebar_ui.png");
  }
  </code></pre>
  
  <p>All help attempts will be appreciated.</p>