Navigator/Explorer Comparison

|home| |contact| |search| |technical|

lists

how NN and IE handle lists

page 1 of 4


table of contents

preface

Lists are represented with standard HTML code. CSS should allow authors to extend stylesheet control over these common HTML elements. However, I have found that NN and IE handle the style representations of lists very differently.

Generally, we want to be able to control the look of a list that has nested lists inside of it. We should be able to control the look of each level of list, both background coloring and foreground coloring, as well as fonts. Below is a typical list with two nested lists. The nesting is only one level deep.

<ul>
<li>list item one
<li>list item two
<li>list item three
   <ul>
   <li>sublist item one
   <li>sublist item two
   <li>sublist item three
   </ul>
<li>list item four
<li>list item five
   <ul>
   <li>sublist item four
   <li>sublist item five
   </ul>
<li>list item six
<li>list item seven
</ul>

in IE we see
a simple list

This is fine, but we want to color behind the list. Let's add the stylesheet definition below.

UL {background:blue;}

we see in NN4.7:we see in IE5.0:
NN4.7 simple blue background IE5.0 simple blue background
we see in NN6.0:.
NN6.0 simple blue background  

IE5.0 colored all the way out to the right margin. NN4.7 colored only directly behind the text.NN6.0 colored all the way across the page to the right margin, and also colored in the bullet area.

Let's see if we can bring the representations in each browser into line by using the hack of setting a border one pixel wide (for NN) and by setting the WIDTH of the UL element (for both NN and IE).

UL {background:blue;width:55%;border-width:1px;}

we see in NN4.7:we see in IE5.0:
NN4.7 blue background with width IE5.0 blue background with width
we see in NN6.0:'
NN4.7 blue background with width  

All versions look pretty similar. All versions are blue boxes constrained with a width. NN4.7 is showing the borders around each UL element, but that's alright. We can fix that with BORDER-COLOR. If we set BORDER-COLOR to blue, the border will disappear in NN4.7. In the next section, we will try to control more style elements in the list.

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