Navigator/Explorer Comparison


css and tables

how NN and IE handle css and tables

page 1 of 3


table of contents

css support of tables

If you look at the source of many sites, you will see that designers "hardcode" tables with HTML 3.2 or HTML 4.0, but do not use stylesheets. Why? CSS support for tables is pretty spotty in IE5.0 and NN4.7. I've had a lot of trouble bringing CSS support to tables. In this section, we'll create a basic table and then try to bring stylesheet support to it and see how each browser renders the table and style information.

Below is the code for a basic four cell table.

<table>
<tr>
<td>cell one</td>
<td>cell two</td>
</tr>
<tr>
<td>cell three</td>
<td>cell four</td>
</tr>
</table>
	

I haven't added any width or background or border information to this table. We will try to do this with stylesheets. The representation is almost identical in both browsers.

simple table
simple table representation

§
top

background and margins

Let's start with a background color for the table. Also, let's center the table by setting it's margins to AUTO. The style information is below.

table {background:#FFFF00;
	margin-left:auto;margin-right:auto}

we see in NN4.7:we see in IE5.0:
NN4.7 table properties IE5.0 table properties
we see in NN6.0: 
NN6.0 table properties

NN4.7 and IE5.0 have colored the tables but have not responded to my attempt to center the table. Only NN6.0 has centered the table.

§
top

width property

Let's add width to the table.

table {background:#FFFF00;
	margin-left:auto;margin-right:auto;
	width:200px;}

we see in NN4.7:we see in IE5.0:
NN4.7 table properties with width IE5.0 table properties with width
we see in NN6.0: 
NN6.0 table properties with width

NN4.7 does not respond to the WIDTH property in the style definition. IE5.0 and NN6.0 do. Note that both NN4.7 and NN6.0 have a clear cell wall painted between the cells.

§
top

height property

Like the WIDTH property, NN4.7 does not respond to the HEIGHT property. IE5.0 and NN6.0 do respond to the HEIGHT property.

§
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
Certified Nerds 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.