Hi i'm Floyd and i am going teach you how to use Tables Hi i'm Floyd and in this lesson we are going to learn how to use Tables IofM.net Free Internet Service Provider for the Isle of Man
 



Working with Tables


Introduction
Rows and Cells
Your first Table
Colspan
Rowspan
Alignment
Cell Spacing
Table Tricks
  Spacing and Padding



Now that you've got your table all aligned, you may want to adjust the spacing of the cells. Here are two tags that do really similar things that you'll probably use a lot cellspacing and cellpadding.

They both put a little space between the cells of your table, but they do it in different ways. cellspacing makes the border of the table fatter, increasing the distance between cells. cellpadding adds invisible space inside the border of the cells, which pushes the cell's contents away from the border on all four sides.

cellspacing=10
1 2
3 4
cellpadding=10
1 2
3 4

Both attributes go in the <table> tag, like so:


<table cellpadding="4" cellspacing="5">

Just remember: Spacing increases the size of the border, and padding increases the space around the border.


Previous Page Back Next Next Page


Index / Lesson One / Lesson Two / Lesson Three / Lesson Four