Make A Dropdown menu?

Venom

Seasoned Veteran
Joined
Sep 12, 2012
Messages
3,798
Reaction score
0
FP$
0
I have A Few Buttons on the menu-bar of the forum Im making and I want to make a dropdown, so I can group some. Im not sure how to do this so please help.
 

Attachments

  • Screenshot_16_1.webp
    Screenshot_16_1.webp
    4.8 KB · Views: 106
Please help. i want to add a dropdown menu to the Deluxe style and was following this tutorial: http://www.noupe.com/tutorial/drop-down ... y-css.html I cut the html down to:

Code:
<ul class="topnav">
    <li>
        <a href="#"><span>Tutorials</span></a>
        <ul class="subnav">
            <li><a href="#"><span>Sub Nav Link</span></a></li>
            <li><a href="#"><span>Sub Nav Link</span></a></li>
        </ul>
    </li>
</ul>

I tried stipping the css down to this:

Code:
/*dropdown menu*/


ul.topnav li {
    position: relative; /*--Declare X and Y axis base for sub navigation--*/


ul.topnav li span { /*--Drop down trigger styles--*/
    width: 17px;
    height: 35px;
    float: left;
}
ul.topnav li span.subhover {background-position: center bottom; cursor: pointer;} /*--Hover effect for trigger--*/
ul.topnav li ul.subnav {
    list-style: none;
    position: absolute; /*--Important - Keeps subnav from affecting main navigation flow--*/
    left: 0; top: 35px;
}

The parent 'tutorials' button of the dropdown seems to display ok. But the sub buttons show, and it looks like this:



I think its Just a CSS Issue so please could someone help with it.

Also, where do I put the Javascript?.

Thanks.
 

Attachments

  • nNTeqW9.webp
    nNTeqW9.webp
    6.9 KB · Views: 108
Ah thanks, can I put the java in the overall_header template?.
 
Dennis said:
Ah thanks, can I put the java in the overall_header template?.

Well yea, thats where the header is.

Find:
Code:
</head>

Add your code before that.
 
Back
Top Bottom