CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13)
-   -   Adding second drop down menu (http://www.codingforums.com/showthread.php?t=282508)

charisma44 11-18-2012 03:46 PM

Adding second drop down menu
 
I have a drop down menu on my site, now I want to add another drop down off of one of my other drop down menu tabs.

http://www.cjwebconsulting.com/joey/index.html#

Excavator 11-18-2012 04:02 PM

Good morning charisma44,
You just need to add another ul. Follow the layout of the drop that's working and you'll be fine.

charisma44 11-18-2012 04:10 PM

I tryed that. Off of Destination is North America. LIke to have a drop menu off of North America. I thought it would be simple.

Excavator 11-18-2012 04:53 PM

Quote:

Originally Posted by charisma44 (Post 1293007)
I tryed that. Off of Destination is North America. LIke to have a drop menu off of North America. I thought it would be simple.

Start with this in your markup
Code:

    <div id="navigation">
        <ul>
            <li><a href="index.html">Home</a></li>
            <li><a href="#">Destination</a>
                <ul>
                    <li><a href="#">North America</a>
                            <ul>
                                <li>added menu items</li>
                                <li>added menu items</li>
                                <li>added menu items</li>
                                <li>added menu items</li>
                        </ul>
                    </li>

                    <li><a href="#">Central America</a></li>
                    <li><a href="#">South America</a></li>
                    <li><a href="#">Europe</a></li>
                    <li><a href="#">Caribbean</a></li>
                    <li><a href="#">Africa</a></li>
                    <li><a href="#">Middle East</a></li>
                    <li><a href="#">Australia</a></li>
                    <li><a href="#">Asia</a></li>
                </ul>
            </li>
            <li><a href="resources.html">Resources</a></li>
            <li><a href="comments.html">Comments</a></li>
            <li><a href="contact.html">Contact</a></li>
        </ul>
    <!--end navigation--></div>

And target it in your CSS, because it will need to be styled and positioned differently than your other drop, with this
Code:

#navigation ul li ul li ul {
        css goes here
}
#navigation ul li ul li ul li {
        css goes here
}


charisma44 11-18-2012 04:54 PM

Thank you :cool:


All times are GMT +1. The time now is 03:22 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.