HTML table needs spacing between columns, not rows

后端 未结 5 1830
南旧
南旧 2021-02-06 20:10

I have an HTML table. I need to have spacing between the table columns, but not the table rows.

If I use the cellspacing CSS property it does it between bot

5条回答
  •  闹比i
    闹比i (楼主)
    2021-02-06 20:58

    cellpadding="length in pixels" ~ The cellpadding attribute, used in the

    tag, specifies how much blank space to display in between the content of each table cell and its respective border. The value is defined as a length in pixels. Hence, a cellpadding="10" attribute-value pair will display 10 pixels of blank space on all four sides of the content of each cell in that table.

    cellspacing="length in pixels" ~ The cellspacing attribute, also used in the

    tag, defines how much blank space to display in between adjacent table cells and in between table cells and the table border. The value is defined as a length in pixels. Hence, a cellspacing="10" attribute-value pair will horizontally and vertically separate all adjacent cells in the respective table by a length of 10 pixels. It will also offset all cells from the table's frame on all four sides by a length of 10 pixels.

    提交回复
    热议问题