CSS Select only List after 1st layer

Posted by Gidiyo on Stack Overflow See other posts from Stack Overflow or by Gidiyo
Published on 2010-05-31T16:57:09Z Indexed on 2010/05/31 17:13 UTC
Read the original article Hit count: 232

Filed under:
|
|

Given

<ul class="menu">
<li> <!-- layer1 -->
    <a href="/gbcweb/index.php?option=com_content&amp;view=article&amp;id=19&amp;Itemid=27">
        <span>sub menu</span>
    </a>
    <ul>
        <li><!-- layer2 -->
            <a href="/gbcweb/index.php?option=com_content&amp;view=article&amp;id=22&amp;Itemid=34">
                <span>sub menu1</span>
            </a>
            <ul>
                <li><!-- layer3 -->
                    <a href="/gbcweb/index.php?option=com_content&amp;view=article&amp;id=22&amp;Itemid=34">
                        <span>sub menu2</span>
                    </a>
                    <!-- Continue layering -->
                </li>
            </ul>
        </li>
    </ul>
</li><ul>

How do I select all the from layer 2 onwards?And set a background image to all sub menu.

© Stack Overflow or respective owner

Related posts about html

Related posts about css