how to create the HTML table layout with different column position

Polachan Paily 0 Reputation points
2023-03-22T07:03:04.49+00:00

I am trying to create the html table layout as given in attachment. I have a for loop inside the html page and I am trying to create each row of the table having the layout as given below.

<table id = "myTable">    
@{
    foreach (var item in Model.builds) {
    <tr>
        // I am trying to give each record lay out as given attached
    </tr>
    
                 
     </tr>
     
    
}
<table>

FleetLayout


ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,626 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Olaf Helper 45,121 Reputation points
    2023-03-22T07:41:23.0833333+00:00

    A table is a table with a clear 2 dimensional structure, as e.g. in spreadsheets.

    What your image shows is an unstructured arrangement of some rectangles; you can't implement taht with a structured Html table.

    Use single textbox/label controls instead.

    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.