JSFiddle - React, Tailwind, and code Playground
by CallMeLaNN
HTML
<p>This sample is to test setting jQuery .html('&nbsp;') and .text(' ') into a table cell and effect to the border line on Print Preview.</p>
<p>You can see all the border line for the three cells but try to see on the Print Preview for missing border line.</p>
<p>Click on empty space on non-editor and result area of jsFiddle if you cannot see anything in the preview.</p>
<br />
<table class="tSample" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td>Sample cell</td>
<td> </td>
<td>.html('&nbsp;')</td>
<td> </td>
<td>.text(' ')</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td class="sample" style="border: 1px solid #000;"> </td>
<td> </td>
<td class="testHtml"> </td>
<td> </td>
<td class="testText"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"></script>
CSS
table
{
border-collapse: separate; /* Remove normalize style from JsFiddle, separate is default in IE7 */
}
.tSample, .sample, .testHtml, .testText
{
border: 1px solid #000;
background-color: transparent;
}
.tSample tr
{
height: 30px;
}
.sample, .testHtml, .testText
{
width: 100px;
}
JavaScript
$(document).ready(function() {
$('.testHtml').html(' ');
$('.testText').text(' ');
});