title: How do you get rid of the automatic space added on a div within a td?
body: <p>I have a simple table similar to this.</p>
  
  <pre><code>&lt;table style='border-collapse: collapse;'&gt;
      &lt;tr&gt;
          &lt;td style='border: 1px solid blue;'&gt;
          &lt;div style='background-color: yellow;'&gt;
              test
          &lt;/div&gt;
          &lt;div style='background-color: green;'&gt;
              test
          &lt;/div&gt;
          &lt;/td&gt;
          &lt;td style='background-color: red; border: 1px solid blue;'&gt;
              test
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>This table generates this:</p>
  
  <p><img src="https://i.stack.imgur.com/rov82.png" alt="enter image description here"></p>
  
  <p>Is there any way to get rid of the space that is added between the yellow and green divs and the table border?</p>