how to remove rows from a table?

1

I am creating a table, but on the site the lines that separate the columns and rows always appear. Can anyone tell me how I could do to get them out?

The code I have is this:

<table>
   <tbody>

      <tr>
          <td bgcolor="white" width="175">Lorem ipsum dolor sit amet</td>
          <td bgcolor="white" width="25"></td>
          <td bgcolor="white">Lorem ipsum dolor sit amet,
          </td>
      </tr>
      <tr>

          <td bgcolor="white">Lorem ipsum dolor sit amet</td>
          <td bgcolor="white" width="25"></td>
          <<td bgcolor="white">Lorem ipsum dolor sit amet,</td>
      </tr>

      <tr>
          <td bgcolor="white">Lorem ipsum dolor sit amet</td>
          <td bgcolor="white" width="25"></td>
          <td bgcolor="white">Lorem ipsum dolor sit amet,
          </td>
      </tr>

   </tbody>
</table>
    
asked by anonymous 14.09.2018 / 15:07

2 answers

2

Just remove the borders via css and the attributes cellpadding and cellspacing

body {
  background-color: grey;
}

table {
  border: none;
}
<h1> Atributos zerados</h1>
<table cellpadding="0" cellspacing="0">
  <tbody>

    <tr>
      <td bgcolor="white" width="175">Lorem ipsum dolor sit amet</td>
      <td bgcolor="white" width="25"></td>
      <td bgcolor="white">Lorem ipsum dolor sit amet,
      </td>
    </tr>
    <tr>

      <td bgcolor="white">Lorem ipsum dolor sit amet</td>
      <td bgcolor="white" width="25"></td>
      <td bgcolor="white">Lorem ipsum dolor sit amet,</td>
    </tr>

    <tr>
      <td bgcolor="white">Lorem ipsum dolor sit amet</td>
      <td bgcolor="white" width="25"></td>
      <td bgcolor="white">Lorem ipsum dolor sit amet,</td>
    </tr>
  </tbody>
</table>

<h1> Apresentação default </h1>
<table>
  <tbody>

    <tr>
      <td bgcolor="white" width="175">Lorem ipsum dolor sit amet</td>
      <td bgcolor="white" width="25"></td>
      <td bgcolor="white">Lorem ipsum dolor sit amet,
      </td>
    </tr>
    <tr>

      <td bgcolor="white">Lorem ipsum dolor sit amet</td>
      <td bgcolor="white" width="25"></td>
      <td bgcolor="white">Lorem ipsum dolor sit amet,</td>
    </tr>

    <tr>
      <td bgcolor="white">Lorem ipsum dolor sit amet</td>
      <td bgcolor="white" width="25"></td>
      <td bgcolor="white">Lorem ipsum dolor sit amet,</td>
    </tr>
  </tbody>
</table>
    
14.09.2018 / 15:14
1

In this case you can add a CSS style in the <table> tag, as below:

<table style="border:0;">

This is the most current solution, but you can also put the border="0" attribute in the tag:

<table border="0">

    
14.09.2018 / 15:14