On Fri, 10 Jun 2005 18:06:10 -0400, Jessica Mays wrote:
>�I am messing around with this concept, but it is not seeming to
>�work for me
>
>�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.
>
Hi Jessica,
I think this will work the way you expected:
#nav li + li {color: #F90;}
(But that will make line 3 orange too.)
Explanation here:
<http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-selectors>
Life. Love. Peace.
David
--
David Hucklesby, on 6/11/2005
<http://www.hucklesby.com/>
--
______________________________________________________________________
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/