GeekInterview.com
Series: Subject: Topic:
Question: 43 of 47

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”>

Asked by: GeekAdmin | Member Since Oct-2005 | Asked on: Sep 23rd, 2006

View all questions by GeekAdmin   View all answers by GeekAdmin

Showing Answers 1 - 5 of 5 Answers
Balakrishnan

Answered On : Nov 30th, 2006

Hi Cellpadding: it is used to increase the size of cells. Cellspacing:it is used to make space between cells.

  
Login to rate this answer.
Minnat

Answered On : Jun 11th, 2007

CELLSPACING controls the space between table cells.
CELLPADDING sets the amount of space between the contents of the cell and the cell wall.

  
Login to rate this answer.
Sujatars

Answered On : Jul 30th, 2007

View all answers by Sujatars

Cell Spacing is used to set space between different table cells

Cell Padding is used for formatting the space  needed between the edges of the cell and the content of the cell.

  
Login to rate this answer.
prince kumar

Answered On : Mar 31st, 2012

Cell spacing is not uses for future and cell padding is uses by future.

  
Login to rate this answer.
malikbilal

Answered On : Apr 4th, 2012

Cell spacing:Cell spacing controls the space between table cells by defining the pixel width between them

Cell padding:Cell padding controls the amount of space between the contents of the cell (text, images, etc) from the cell wall

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.