what does "cellspadding" and "cellspacing" mean?! can anyone make table use them pls 😊 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

what does "cellspadding" and "cellspacing" mean?! can anyone make table use them pls 😊

7th Oct 2016, 6:55 PM
Baraa AB
Baraa AB - avatar
6 Answers
+ 1
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.
16th Apr 2018, 4:56 PM
Amit Kumar Rana
Amit Kumar Rana - avatar
+ 7
Amit Kumar Rana thanks bro 👍💚😉 it is an old question (2 years ago ) 😂👍
16th Apr 2018, 4:57 PM
Baraa AB
Baraa AB - avatar
+ 2
Think of cell padding as adding margins inside the cell. Whereas cell spacing is the gaps between cells in a table
7th Oct 2016, 8:50 PM
Andrew Dunk
Andrew Dunk - avatar
+ 1
cellpadding is the space between cell "conte nt" and its border. cellspacing is the space between cells.
7th Oct 2016, 10:14 PM
Batuhan Çilingiroğlu
Batuhan Çilingiroğlu - avatar
+ 1
thanks a lot 😊 can anyone give me a table use them ( i mean the code )
8th Oct 2016, 8:00 AM
Baraa AB
Baraa AB - avatar
+ 1
but I got it and seen it.
16th Apr 2018, 4:59 PM
Amit Kumar Rana
Amit Kumar Rana - avatar