4 Answers - Sort by: Date | Rating
In HTML, the table tag has two properties, cellspacing and cellpadding. Cellspacing controls the space between table cells by defining the pixel width between them (controls the thickness of the border in other words). Cellpadding controls the amount of space between the contents of the cell (text, images, etc) from the cell wall (border). The default for both properties is zero.
Here are some samples:
< table border="1" >
< tr >
< td >some text< /td >
< td >some text< /td >
< /tr >< tr >
< td >some text< /td >
< td >some text< /td >
< /tr >
< /table >
What it looks like:
i157.photobucket.com
< table border="1" cellspacing="5" >
< tr >
< td >some text< /td >
< td >some text< /td >
< /tr >< tr >
< td >some text< /td >
< td >some text< /td >
< /tr >
< /table >
What it looks like:
i157.photobucket.com
< table border="1" cellpadding="10" >
< tr >
< td >some text< /td >
< td >some text< /td >
< /tr >< tr >
< td >some text< /td >
< td >some text< /td >
< /tr >
< /table >
What it looks like:
i157.photobucket.com
Here are some samples:
< table border="1" >
< tr >
< td >some text< /td >
< td >some text< /td >
< /tr >< tr >
< td >some text< /td >
< td >some text< /td >
< /tr >
< /table >
What it looks like:
i157.photobucket.com
< table border="1" cellspacing="5" >
< tr >
< td >some text< /td >
< td >some text< /td >
< /tr >< tr >
< td >some text< /td >
< td >some text< /td >
< /tr >
< /table >
What it looks like:
i157.photobucket.com
< table border="1" cellpadding="10" >
< tr >
< td >some text< /td >
< td >some text< /td >
< /tr >< tr >
< td >some text< /td >
< td >some text< /td >
< /tr >
< /table >
What it looks like:
i157.photobucket.com
0
0
The cellspacing attribute adjusts the space between the cells and cellpadding adjust the space within the cells.
0
0
Cellpading is the distance between cell and text in the cell and cell spacing is the distance between two cells.
0
0
Guest
answered 6 months ago
Cell padding= Distance in pixel between the cell border and its content.cell spacing= Distance in pixel between the two Respected cells.
0
0
- How Can Run Applet In Html?
- What Adding HTML Codes To A Page Is Called?
- Write Down The Complete Html Code To Generate A Web Page In The Following Format As Shown Below?
- How Can We Run Applet In HTML Page. Please Explain With An Example?
- What Is The Name Of The Unicode Symbol That Looks Like A Lowercase Q And Is Often Used Like This: Q_q?
- What's A Valid HTML Block Of Code?
- Why Are There Different Versions Of HTML?
- Here Are Some Ideas For Better Mental Health: U Family Can Help Your Mental Health By Supporting Your Life Choices. ,?
- Write The Program That Calculate The Sum And Product Of Two Numbers Using Java Script As A Web Page?
- How Can I Set The Particular Scroll Text In Tooltip Box In Html?
- How To Set Tooltip For Particular Text In Html?
- How To Get An Html Project Free Online?
- What Is A 640 Wide Html Box?
- My Web Page Internal Links Work At The Website But On My Computer At Home All The Links Work Except The Link To The Links.htm Page, They Work From The Link Page To The Others But Not The Other Way. What Could Be The Problem?
- 25099 Unzippedcore Files Failed , I Tryed To Download Java So I Can Get Into Pogo Can You Help?
- How Do I Link My Pre-existing Flash 8 Buttons To A Dreamweaver HTML Document?
- What's Is The Difference Between Cellspacing And Cellpadding?
- What Is The Difference Between Htm And Html?
- What Is The Difference Between Html And Xml?
- What Is The Difference Between Html And A Content Management Website?
- What Is HTML?
- How Do You Use Html?
- How To Use HTML?
- What Do Html Mean?
- What It Is Html?
- What Are Html?
- What Does HTML Stand For?
- What Is Html Code?
- What Is A Header In Html?
- Where Is The Header In Html?
- What Do You Mean By HTML And Where It Was Originated ?
- HTML Links?

New Comment - Comments are editable for 5 min.