Cellpadding and Cellspacing | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Cellpadding and Cellspacing

I'm beginner in HTML and CSS, i have Learnt to code but i m getting problem in understanding the use of Cellpadding and Cellspacing please anyone elaborate its use and difference also

11th Jan 2017, 5:58 PM
Mohd Adnan
Mohd Adnan - avatar
4 Answers
+ 12
Cellspacing = space between each cell in table Cellpadding = space between cell content and border
11th Jan 2017, 6:31 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
Cellpadding, cellspacing and border are deprecated... It's strongly advisable to use CSS properties instead: table { border:1px solid black; /* use instead of setting 'border' attribute in <table> tag */ border-spacing:5px; /* use instead of setting 'cellspacing' in <table> tag */ } td { padding:5px; /* use instead of setting 'cellpadding' in <table> tag */ }
11th Jan 2017, 9:13 PM
visph
visph - avatar
+ 2
cellspacing means space between each cell.. cellpadding means space between each element(text or somethig)
12th Jan 2017, 9:04 PM
ARNAB BISWAS
ARNAB BISWAS - avatar
+ 1
thanks 😊
12th Jan 2017, 6:21 AM
Mohd Adnan
Mohd Adnan - avatar