jQuery PrMenu

Very lightweight, responsive menu plugin for jQuery. Provides a menu with links evenly distributed across width of menu container.

Features

How to use

Set up your menu as standard ul with li. Nest sub-menus as you need them. As in the menu below, you can have a maximum of four menu levels including the top level:


        <ul id="top-menu">
        <li><a href="#">Home</a></li>
         <li><a href="#">Services</a>
            <ul>
                <li><a href="#">Personal</a></li>
                <li><a href="#">Business</a></li>
                <li><a href="#">Professional Services</a>
                    <ul>
                        <li><a href="#">Doctor</a></li>
                        <li><a href="#">Lawyer</a>
                            <ul>
                                <li><a href="#">Tax</a></li>
                                <li><a href="#">Real Estate</a></li>
                                <li><a href="#">Criminal</a></li>
                            </ul>
                        </li>
                        <li><a href="#">Accountant</a>
                    </ul>
                </li>
            </ul>
        </li>
        <li><a href="#">Shop</a></li>
        <li><a href="#">Support for Customers</a></li>
        <li><a href="#">FAQ</a></li>
        <li><a href="#">About</a></li>
        <li><a href="#">Contact</a>
            <ul>
                <li><a href="#">Personal</a></li>
                <li><a href="#">Business</a></li>
                <li><a href="#">Professional</a>
                    <ul>
                        <li><a href="#">Family Doctor Clinic</a></li>
                        <li><a href="#">Lawyer</a>
                            <ul>
                                <li><a href="#">Tax</a></li>
                                <li><a href="#">Real Estate Lawyer</a></li>
                                <li><a href="#">Criminal</a></li>
                            </ul>
                        </li>
                        <li><a href="#">Enterprise Accountant</a>
                    </ul>
                </li>
            </ul>
        </li>
    </ul>

Activate the menu when the document is ready:


        $(document).ready(function(){
            $('#top-menu').prmenu();
        });

You can optionally override the default plugin settings by passing in your own options:


            $('#top-menu').prmenu({
                  "fontsize": "14",
                    "height": "50",
                    "case": "capitalize",
                    "linkbgcolor": "#286090",
                    "linktextcolor": "#ffffff",
                    "linktextweight": "400",
                    "linktextfont": "sans-serif",
                    "hoverdark": false
                });

Options

Demo

PrMenu live demo

History

Please see the releases changelog.

License

Released under MIT Licence