How to create tables from column data instead of row data in HTML?

前端 未结 6 1774
抹茶落季
抹茶落季 2020-12-14 06:11

According to this article at W3 Schools, one can create a basic table in HTML like this:

row 1, c
6条回答
  •  不知归路
    2020-12-14 06:11

    You can always create a parent element (the table), and then inside the table you can create in-line block elements with limited width to serve as your columns, that way any content you add to those child columns will follow the downward pattern, then to make the grid-like pattern just make sure to set the height of the elements within the column, like so Using the list to display content:

          提交回复
          热议问题