How to create a scattered td columns in different positions on the boot strap html table

Polachan Paily 91 Reputation points
2023-03-06T07:11:09.9666667+00:00

FleetLayout

I am trying to create a html table with the column having placed in different places of the table. A table with 10 record having 15 td columns in different places. am looking for the help to bring this layout in my code. I have attached html layout

<table id = "empTable">    
@{
    foreach (var item in Model.builds) {
    <tr>
        <td>@item.Build1</td>
        <td>@item.Build2</td>
        <td>@item.Build3</td>
        <td>@item.Build4</td>
    </tr>
    <tr>
      <td>@item.Build5</td>
        <td>@item.Build6</td>
        <td>@item.Build7</td>            
     </tr>
     <tr>
      <td>@item.Build8</td>
        <td>@item.Build9</td>
        <td>@item.Build10</td>             
    </tr>
    <tr>
      <td>@item.Build11</td>
        <td>@item.Build12</td>
        <td>@item.Build13</td> 
        <td>@item.Build14</td>
    </tr>
    
}
<table>
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,573 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 65,576 Reputation points
    2023-03-06T16:34:31.78+00:00

    just use empty <td></td> for the cells you want empty

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.