title: How to format html table with inline styles to look like a rendered Excel table?
body: <p>I'm currently stuck setting borders in an html table. (I use inline styles for a better rendering in e-mail-clients) I have this piece of code:</p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;
          &lt;table style="border: 1px solid black;"&gt;
              &lt;tr&gt;
                  &lt;td width="350" style="border: 1px solid black ;"&gt;
                      Foo
                  &lt;/td&gt;
                  &lt;td width="80" style="border: 1px solid black ;"&gt;
                      Foo1
                  &lt;/td&gt;
                  &lt;td width="65" style="border: 1px solid black ;"&gt;
                      Foo2
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr style="border: 1px solid black;"&gt;
                  &lt;td style="border: 1px solid black;"&gt;
                      Bar1
                  &lt;/td&gt;
                  &lt;td style="border: 1px solid black;"&gt;
                      Bar2
                  &lt;/td&gt;
                  &lt;td style="border: 1px solid black;"&gt;
                      Bar3
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr style="border: 1px solid black;"&gt;
                  &lt;td style="border: 1px solid black;"&gt;
                      Bar1
                  &lt;/td&gt;
                  &lt;td style="border: 1px solid black;"&gt;
                      Bar2
                  &lt;/td&gt;
                  &lt;td style="border: 1px solid black;"&gt;
                      Bar3
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>It is rendered like this:
  <img src="https://i.stack.imgur.com/UvlnF.png" alt="alt text"></p>
  
  <p>I want the table to be rendered like Excel would render a table, with inner and outer border:
  <img src="https://i.stack.imgur.com/skooZ.png" alt="alt text"></p>