How do I delete white space from columns?

1

I have the following table:

<table>
  <tr>
    <td style="border-top:1pt solid black">A</td>
    <td style="border-top:1pt solid black">B</td>
  </tr>
</table>

Note that when you place the border in the td's the line does not have continuity from one column to another, but it has a blank range. How can I remove this space using border in td how are you?

Result obtained:

Desiredoutcome:

    
asked by anonymous 11.04.2016 / 14:46

2 answers

4

Add style="border-collapse: collapse;" to the tag or css:

table {
border-collapse: collapse;
 }
<table>
  <tr>
    <td style="border-top:1pt solid black">A</td>
    <td style="border-top:1pt solid black">B</td>
  </tr>
</table>
    
11.04.2016 / 14:49
0

The TABLE tag has a priority for this. Try the code below:

 <table cellpadding="0" cellspacing="0">
    
11.04.2016 / 15:02