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.
The general format of specifying cell spacing is as follows:
< table width="100" border="2" cellspacing="20">
One can also apply cell spacing and cell padding together. It is done as follows:
< table width="100" border="2" cellpadding="5" cellspacing =”20”>
What are the differences between cell spacing and cell padding?
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.
The general format of specifying cell spacing is as follows:
< table width="100" border="2" cellspacing="20">
One can also apply cell spacing and cell padding together. It is done as follows:
< table width="100" border="2" cellpadding="5" cellspacing =”20”>
Profile Answers by GeekAdmin Questions by GeekAdmin
Questions by GeekAdmin answers by GeekAdmin
Related Answered Questions
Related Open Questions