title: Getting Rid of empty spaces in a Complex Table
body: <p>I'm trying to create a little bit complex table using <code>rowspan</code>, where it looks well enough in this <a href="https://jsfiddle.net/g4sakyhz/" rel="nofollow noreferrer">fiddle</a> using this code:</p>
  
  <pre><code>&lt;table border="1" style="margin:5px;"&gt;
      &lt;tr&gt;
          &lt;th&gt;&lt;b&gt;Name&lt;/b&gt;&lt;/th&gt;
          &lt;th&gt;&lt;b&gt;Date&lt;/b&gt;&lt;/th&gt;
          &lt;th&gt;&lt;b&gt;Time&lt;/b&gt;&lt;/th&gt;
          &lt;th&gt;&lt;b&gt;No. of Hours&lt;/b&gt;&lt;/th&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td rowspan="26"&gt;Sample Name&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td rowspan="6"&gt;2016-03-04&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;04:59:11 pm&lt;/td&gt;
          &lt;td rowspan="5"&gt;0&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;04:59:13 pm&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;04:59:15 pm&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;04:59:19 pm&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;04:59:33 pm&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td rowspan="3"&gt;2016-03-07&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;08:23:10 am&lt;/td&gt;
          &lt;td rowspan="2"&gt;0&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;04:04:01 pm&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td rowspan="3"&gt;2016-03-08&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;01:26:56 pm&lt;/td&gt;
          &lt;td rowspan="2"&gt;0&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;05:00:48 pm&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td rowspan="6"&gt;2016-03-09&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;08:21:35 am&lt;/td&gt;
          &lt;td rowspan="5"&gt;0&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;08:21:59 am&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;09:08:01 am&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;09:09:52 am&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;02:40:22 pm&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td rowspan="3"&gt;2016-03-10&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;09:50:43 am&lt;/td&gt;
          &lt;td rowspan="2"&gt;0&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;11:44:39 am&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td rowspan="2"&gt;2016-03-11&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;11:05:03 am&lt;/td&gt;
          &lt;td rowspan="1"&gt;0&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>But when I tried to put it in an FPDF generated page, their are empty spaces above each row which you will not notice when displayed in an HTML page. Take a look at the screenshot below:</p>
  
  <p><a href="https://i.stack.imgur.com/MiIu7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MiIu7.png" alt="enter image description here"></a></p>
  
  <p>Now, when I take a closer look at the fiddle, there are empty spaces in it but it's not that noticeable like in the FPDF generated file.</p>
  
  <p>How will I be able to get rid of those empty spaces?</p>