How to scroll LI items in a fixed height UL?

Posted by Tahir Akram on Stack Overflow See other posts from Stack Overflow or by Tahir Akram
Published on 2011-01-05T12:40:17Z Indexed on 2011/01/05 12:54 UTC
Read the original article Hit count: 347

Filed under:
|
|
|
|

Here is my example HTML.

And I want to have scroll for my LI items.

Which are of 2 levels. Means, I want to apply class on every UL.

So how can I do that. By using JQuery or CSS tweaking.

PS: I am using this example.

<ul id="nav" class="dropdown">
<li class="dir">
    Item_Root
    <ul>
        <li class="dir">
            Item_1_Level
            <ul>
                <li>Item_Level_2</li>
                <li>Item_Level_2</li>
                <li>Item_Level_2</li>
                <li>.... up to N items</li>
            </ul>
        </li>
        <li>Item_Level_1</li>
        <li>Item_Level_1</li>
        <li>Item_Level_1</li>
        <li>Item_Level_1</li>
        <li>.... up to N items</li>
    </ul>
</li>

 </ul>  

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about css