Html: Difference between cell spacing and cell padding [closed]
Asked Answered
A

5

29

What is the difference between cell spacing and cell padding?

Acherman answered 20/3, 2013 at 7:25 Comment(6)
try difference between cell spacing and cell padding on google.comVulturine
cellspacing is the space between the cell wall and cell padding expand the cell wall not give spaceLambaste
Easy to illustrate: jsfiddle.net/QWRM6Psychoanalysis
Funny thing, this is now the highlighted answer on google. I needed to remind myself of the difference. I googled it. This was the highlighted answer on google, and it answered my question. So, why isn't it a valid question?Homogenize
cellspacing : space between cells; cellpadding : space between the cell border and it's content. So try to think about cellspacing as "cell-spacing or space between cells". But cellpadding is "how much padding is added inside the cell to limit the space left for text inside". For a quick demo with HTML code, have a look at here digizol.com/2008/08/cellspacing-vs-cellpadding-table.htmlRose
Related post - Set cellpadding and cellspacing in CSS?Mueller
D
47

This is the simple answer I can give.

enter image description here

Dichroite answered 20/3, 2013 at 7:50 Comment(0)
C
34

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.

Cathouse answered 20/3, 2013 at 7:44 Comment(0)
D
2

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

Decorous answered 20/3, 2013 at 7:28 Comment(0)
F
2

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.

Fidelafidelas answered 20/3, 2013 at 8:47 Comment(0)
S
0

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.

Sard answered 20/3, 2013 at 7:28 Comment(1)
So is there any difference between Cellspacing and margin of cell.Magnetite

© 2022 - 2024 — McMap. All rights reserved.