Below is a simple table example. To more easily see how a table's values change the page formatting, we are going to nest the example table inside of another table. The outer table has a gif in it's topmost cell that will serve to help measure the outer table's column width. I am setting the outer table's background to red.
Below is the code of the outer table.
<table bgcolor=red border=1 width=100
cellspacing=0 cellpadding=0 align=center>
<tr>
<td><img src="ruler.gif"
vspace=0 hspace=0 height=20 width=100></td>
</tr>
<tr><td></td></tr>
</table>
There are two rows. One holds the picture, the second row is empty at this point. Now we will nest a table inside of the empty row.
This table will be as wide as the picture ruler.gif, which is 100 pixels. Like the outer table, we will set CELLSPACING and CELLPADDING to zero.
Here is the code for the inner table.
<table bgcolor=yellow border=0 cellspacing=0 cellpadding=0
align=center width=100>
<tr><td>item 1</td></tr>
<tr><td>item 2</td></tr>
<tr><td>item 3</td></tr>
<tr><td>item 4</td></tr>
<tr><td>item 5</td></tr>
<tr><td>item 6</td></tr>
</table>
| we see in NN4.7: | we see in IE5.0: |
![]() |
![]() |
| we see in NN6.0: | |
![]() |
The representations are identical.
Let's increase the CELLPADDING and CELLSPACING of the inner table to a value of seven pixels. Let's also increase the BORDER thickness of the inner table to four pixels.
| we see in NN4.7: | we see in IE5.0: |
![]() |
![]() |
| we see in NN6.0: | |
![]() |
At this point we haven't been able to break the tables. The tables have been able to maintain their overall width by robbing space from the cells. The data inside the cells is small enough to be aligned with the cellpadding we've requested.
Note the differences between the rendering in NN4.7 and IE5.0. These differences have already been noted the section tables and colors.
Let's increase the CELLPADDING and CELLSPACING to a value of 20 pixels in an attempt to break this table.
| we see in NN4.7: | we see in IE5.0: |
![]() |
![]() |
| we see in NN6.0: | |
![]() |
Now we've been able to break the table. Because of the space needed by CELLPADDING, CELLSPACING, and BORDER, the table now ignores the fixed WIDTH of the outer table. The arrows in each picture point toward the place where you can see the table is wider than the rule gif.
| resources | |
| Four Corners Effective Banners | This site is dedicated to the study of all things banner-like, including: banners, click-through ratios, banner advertising, banner link exchanging, etc. You'll learn how to improve your banners and increase your site traffic. |
| Free Site Tools | A webmaster's directory of free resources to help find about everything to build, maintain and promote your website. 1000+ Resources. |
| Free Webmaster Tools and Resources | Your center for absolutely free high quality webmaster resources and tools to manage your web site. All utilities, programs and sites are carefully selected. |
| EZSearches.com | Want access to free email, auctions, shopping bargains and more? Try EZSearches.com |
| Akron Computer Repair | A great computer repair company that does in-home visits or drop-off. |
| Cool Candle Shoppe | Candles Place is a great site that if you're looking to purchase some great wax sticks, I'd go here. |