Home > Enterprise >  Adding multiple elements in a table column
Adding multiple elements in a table column

Time:09-17

I am trying to add multiple table cells elements under each of my heading cells but it isn't working.

Here is a screen for better understanding :

enter image description here

I would like to have for each of my category, say for example,

Category 1 : to have below "Brandon" others names like => Steph, Emily, John, etc.

So far I made with a line break but it doesn't work as expected: each item should be in a separated row.

<table>
  <tr>
    <th>Category 1</th>
    <th>Category 2</th>
  </tr>
  <tr>
    <td>Emil<br>Brandon</td>
    <td>Tobias</td>
  </tr>
</table>

CodePudding user response:

Simply add another row.

<table>
  <tr>
    <th>Category 1</th>
    <th>Category 2</th>
  </tr>
  <tr>
    <td>Emil</td>
    <td>Tobias</td>
  </tr>
  <tr>
    <td>Brandon</td>
    <td></td>
  </tr>
</table>

  • Related