Just recently, I stumbled upon another interesting example that showcases the distinction between using display: block
and display: table
I decided to experiment with an email template from litmus:
<table class="row footer">
<tbody>
<tr>
<td class="wrapper">
<table class="six columns">
<tbody><tr>
<td class="left-text-pad">
<h5>Connect With Us:</h5>
<table class="tiny-button facebook">
<tbody><tr>
<td>
<a href="#">Facebook</a>
</td>
</tr>
</tbody></table>
<br>
<table class="tiny-button twitter">
<tbody><tr>
<td>
<a href="#">Twitter</a>
</td>
</tr>
</tbody></table>
<br>
<table class="tiny-button google-plus">
<tbody><tr>
<td>
<a href="#">Google +</a>
</td>
</tr>
</tbody></table>
</td>
<td class="expander"></td>
</tr>
</tbody></table>
</td>
<td class="wrapper last">
<table class="six columns">
<tbody><tr>
<td class="last right-text-pad">
<h5>Contact Info:</h5>
<p>Phone: 408.341.0600</p>
<p>Email: <a href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2f475c4a434b40416f5b5d4e415b405d014c4042">[email protected]</a>"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c2aab1a7aea6adac82b6b0a3acb6adb0eca1adaf">[email protected]</a></a></p>
</td>
<td class="expander"></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table>
When applying display: block !important;
to the footer table, the result is as follows:
https://i.sstatic.net/qG73U.png
However, when changing it to display: table !important;
, the appearance transforms to this:
https://i.sstatic.net/FRdWe.png
This snapshot was captured using a mail application on iOS 10.0.1.