|
Lesson 5Cellspacing and Cellpadding
The 4 tables below show the effect of changing cellspacing & cellpadding. Cellspacing & cellpadding affect all cells in the table, so they go in the <table> tag. Think of a cell as a crate that contains something. Cellspacing is like moving (spacing) the crates apart from each other. It is space between cells. Cellpadding is like bubble wrap (padding) around the item that is in the crate. It is space inside the cell. As you can see, you can use cellspacing & cellpadding to "frame" an image.
cellspacing="0", cellpadding="0"
cellspacing="12", cellpadding="0"
cellspacing="0", cellpadding="12"
cellspacing="12", cellpadding="12"
Cellspacing is not cumulative. What does that mean? Let's say you have 2 or more cells in a row and that you use cellspacing="x". Instead of having x pixels of space on the right side of the left cell and x pixels of space on the left side of the right cell, you will have x pixels total of space between cells. The same applies to adjacent cells in different rows. Key Concepts
Table Tips
As always, questions and comments are welcome. Let's hear it:
Happy tabling!
Code
Homework Assignment
Lesson 6 will be on nested tables.
Table Course Table Gallery Key Concepts and Table Tips Understanding Gradangles WebTV Viewer Table Gallery HTML Cookbook Html.Help.Gnubee Html Help Gnubee Chat | |||||||||||||||||||||