Jessica

You would probably be better of, and more cross browser sure, creating a a seperate style for your second li. If for example your idea is to have a list where every second li item is orange then create a style for that:

#nav li.even {
   color:#f90;
}

Then apply it to every second li element <li class="even">text</li>.

If this list is dynamically generated then you will have to use JavaScript and the DOM to step through the list and applying a class="even" on every second <li> element you encounter. For an example of how this can be done, see: http://www.alistapart.com/articles/zebratables/

HTH


Jessica Mays wrote:
[SNIP]

Take this css:

        * #nav li li {
        color:#FF9900;
        }

(I have also tried it without the *)
On html like:

<div id="nav">
<ul>
        <li>test line 1</li>
        <li>line 2</li>
        <li>line 3</li>
</ul>
</div>

I am not seeing any changes, and I would have expected to see line 2
turn orange.

[/SNIP]

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Business.Solution.Developers
emotionalize.conceptualize.visualize.realize
Landlines
Tel: +27125468436
Fax: +27125468436
Web
email:[EMAIL PROTECTED]
Global: www.volume4.com
Messenger
Yahoo!: v_olume4
AOL: v0lume4
MSN: [EMAIL PROTECTED]

We support OpenSource
Get Firefox!- The browser reloaded - http://www.mozilla.org/products/firefox/

This message contains information that is considered to be sensitive or 
confidential and may not be forwarded or disclosed to any other party without 
the permission of the sender. If you received this message in error, please 
notify me immediately so that I can correct and delete the original email. 
Thank you.


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to