Html: Difference between cell spacing and cell pad

2019-02-05 20:22发布

What is the difference between cell spacing and cell padding?

5条回答
孤傲高冷的网名
2楼-- · 2019-02-05 20:41

CellSpacing as the name suggests it is the Space between the Adjacent cells and CellPadding on the other hand means the padding around the cell content.

查看更多
成全新的幸福
3楼-- · 2019-02-05 20:50

Cell spacing and margin is the space between cells.

Cell padding is space inside cells, between the cell border (even if invisible) and the cell content, such as text.

查看更多
我想做一个坏孩纸
4楼-- · 2019-02-05 20:57

Cellpadding is the amount of space between the outer edges of the table cell and the content of the cell.

Cellspacing is the amount of space in between the individual table cells.

More Details *Link 1*

Link 2

Link 3

查看更多
Emotional °昔
5楼-- · 2019-02-05 20:59

This is the simple answer I can give.

enter image description here

查看更多
我命由我不由天
6楼-- · 2019-02-05 21:01

cellspacing and cell padding


Cell padding

is used for formatting purpose which is used to specify the space needed between the edges of the cells and also in the cell contents. The general format of specifying cell padding is as follows:

< table width="100" border="2" cellpadding="5">

The above adds 5 pixels of padding inside each cell .

Cell Spacing:

Cell spacing is one also used f formatting but there is a major difference between cell padding and cell spacing. It is as follows: Cell padding is used to set extra space which is used to separate cell walls from their contents. But in contrast cell spacing is used to set space between cells.

查看更多
登录 后发表回答