Navigator/Explorer Comparison


tables and sizing

how NN and IE handle table sizing

page 1 of 3


table of contents

nesting the table

Below is the code for nesting a yellow table inside a table with a red background.

<table border=1 bgcolor=red><tr><td>
 
<table border=1 bgcolor=yellow>
<tr><td>cell1</td><td>cell2</td></tr>
<tr><td>cell3</td><td>cell4</td></tr>
</table>
 
</td></tr></table>

we see in NN4.7:we see in IE5.0:
NN4.7 border set to 1 yellow table nested inside red table IE5.0 border set to 1 yellow table nested inside red table
we see in NN6.0: 
NN6.0 border set to 1 yellow table nested inside red table

The differences are obvious. NN4.7 and NN6.0, in building their table borders, have reached behind the nested, inner table and used the color they found; the background color of the outer table. They then reached behind the outer table and used the color found there; the page color.

IE5.0 on the other hand has used for each table that table's background color to generate the color of the borders.

§
top

setting the width

Explicitly setting the width of the nested table to 100% of the width of the outer table produces the same effect. Let's set the width of the inner table to half of that of the outer table. We will not use percentages but instead will use pixel values. The outer table will be 100 pixels wide and the inner table will be 50 pixels wide.

<table border=1 bgcolor=red width=100><tr><td>

<table border=1 bgcolor=yellow width=50>
<tr><td>cell1</td><td>cell2</td></tr>
<tr><td>cell3</td><td>cell4</td></tr>
</table>

</td></tr></table>

we see in NN4.7:we see in IE5.0:
NN4.7 border set to 1 yellow table nested inside too small red table IE5.0 yellow table nested inside too small red table
we see in NN6.0: 
NN6.0 border set to 1 yellow table nested inside too small red table

Things for each browser are not exactly as we would have guessed. The problem is that the cell contents are now driving the width of the inner table.

§
top

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.