MartyB schrieb:
I'm a newbee. I want to create a collapsable ul. But I want each
visible li (including both parent li and child li's ) to alternate the
background color. The problem is that when I apply the background to
the parent, all of the child li's do not change color they inherit the
parent color. I am using the following code to make this happen...

Hi MartyB,
sorry for late answer. I try to find a solution so long :)

What is with this CSS:

    <style type="text/css">
    /*<![CDATA[*/
    <!--
    li.greenbar li,li.greenbar li.stripeable{
    background:#ffffff;
    }
    li.greenbar,li.greenbar li.greenbar{
    background:#eeeeee;
    }
    /* to make indent #ffffff use a Background Image*/
    li.greenbar li.greenbar{
    background:url(bg-gif) no-repeat left top;
    }
    ul,li{
    list-style-type:none;
    margin:0;
    padding:0;
    }
    ul ul li{
    padding-left:25px;
    }
    -->
    /*]]>*/
    </style>

Works perfect in my FF3

--
Viele Grüße, Olaf

-----------------------------------
[EMAIL PROTECTED]
http://olaf-bosch.de/
http://ohorn.info/
http://www.akitafreund.de/
-----------------------------------

Reply via email to