Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

How Cell Padding is differ from Cell Spacing?
 I have given you how cell padding is differ from cell spacing given below:
Cell Padding: Cell Padding in HTML: is used to define the how much space need b/n cell content and cell edges.
Syntax:
< table width="200" border="1" cellpadding="3">
 means that it takes 3 pixels of padding inside the each cell.
Cell Spacing: It is also used to format the table.but it differ than cell padding because in cell padding we can set an extra space to seperate the cell content with cell edges.Where as we use cell spacing to set the space b/w the cells.
Syntax:
< table width="200" border="1" cellspacing="10">
 We can use cell padding and cell spacing together like that,
< table width="200" border="1" cellpadding="3" cellspacing =�10�>