-
Junior Member
Html
What is difference in cellpacing and cellpadding in table tag used in html?
-
Contributing Member
Re: Html
Hi deepti_charolkar,
If you are using cellpadding then the size of the cells will be increased. If you are using cellspacing then only the outside of the cells will be increased not the inside of the cell.
Suppose if you give the bgcolor for the particular cell. If you using cellpadding=5 then the size of colored cell will be increased. But if you using cellspacing=5 then only the outside of the colored cell have some space not the inner side.
In my above explanation cells means columns.
----------------
suresh
Last edited by psuresh1982; 03-22-2007 at 08:49 AM.
-
Junior Member
Re: Html
cellspacing means amount of space between cells in a table.cellpadding means amount of space between border of the cell and the contents of the cell.
-
Re: Html
Hi,
CELLPADDING refers to the inner margins of free space that each cell of a table has as its "padded" border.
CELLSPACING, on the other hand, refers to how space is left between each cell wall in a table. If you want no spaces at all, you MUST set CELLSPACING="0", otherwise the default is CELLSPACING="1", even if you don't even mention CELLSPACING
Thanks,
Riju
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules