Results 1 to 4 of 4

Thread: Html

  1. #1

    Html

    What is difference in cellpacing and cellpadding in table tag used in html?


  2. #2
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    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.

  3. #3
    Junior Member
    Join Date
    Feb 2009
    Answers
    9

    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.


  4. #4
    Expert Member
    Join Date
    May 2009
    Answers
    1,374

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact