Dip it in a div and give it a border and remove the border from the table
<div style="border: 1px solid black"> <table border="0"> <tr> <td>one</td> <td>two</td> </tr> <tr> <td>one</td> <td>two</td> </tr> </table> </div>
Here you can check the working script
According to your updated question .... where do you want to add or remove borders. First you need to remove the borders from the html table, and then do the following
<td style="border-top: 1px solid black">
Assuming you only need the upper bound. Similarly, you must do for others. Best way to create four css classes ...
.topBorderOnly { border-top: 1px solid black; } .bottomBorderOnly { border-bottom: 1px solid black; }
Then add css to your code depending on your requirements.
<td class="topBorderOnly bottomBorderOnly">
This will add upper and lower bounds, similarly do for the rest.
Aura
source share