Drop down menu
4 posters
Page 1 of 1
Drop down menu
Hey,
I want to add this drop down menu to my CSS, but i have no idea where to put what were. http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html
Please help me :3
version: punbb
I want to add this drop down menu to my CSS, but i have no idea where to put what were. http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html
Please help me :3
version: punbb
ddog- Forumember
- Posts : 50
Reputation : 0
Language : english
Re: Drop down menu
Hi,
Add its HTML to overall header.
CSS to AP >> Display >> CSS
JQ to JQ managment, marked all pages, and that is all.
Add its HTML to overall header.
- Code:
<ul class="topnav">
<li><a href="#">Home</a></li>
<li>
<a href="#">Tutorials</a>
<ul class="subnav">
<li><a href="#">Sub Nav Link</a></li>
<li><a href="#">Sub Nav Link</a></li>
</ul>
</li>
<li>
<a href="#">Resources</a>
<ul class="subnav">
<li><a href="#">Sub Nav Link</a></li>
<li><a href="#">Sub Nav Link</a></li>
</ul>
</li>
<li><a href="#">About Us</a></li>
<!-- BEGIN switch_user_logged_in -->
<li><a href="/groups">Usergroups</a></li>
<li><a href="/profile?mode=editprofile">Profile</a></li>
<li><a href="/privmsg?folder=inbox" class="p-m">Mailbox</a></li>
<li><a href="/login?logout">Logout</a></li>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<li><a href="/register">Register</a></li>
<li><a href="/login">Login</a></li>
<!-- END switch_user_logged_out -->
</ul>
CSS to AP >> Display >> CSS
- Code:
#pun-head #pun-navlinks {
list-style: none;
padding: 0 20px;
margin: 0;
float: left;
width: 842px;
background: #222;
font-size: 1.0em;
background: url('http://www.sohtanaka.com/web-design/examples/drop-down-menu/topnav_bg.gif') repeat-x;
}
ul.topnav {
background: url("http://www.sohtanaka.com/web-design/examples/drop-down-menu/topnav_bg.gif") repeat-x scroll 0 0 transparent;
float: left;
font-size: 1.2em;
list-style: none outside none;
margin: 0;
padding: 0 20px;
width: 920px;
}
ul.topnav li {
float: left;
margin: 0;
padding: 0 15px 0 0;
position: relative; /*--Declare X and Y axis base for sub navigation--*/
}
ul.topnav li a{
padding: 10px 5px;
color: #fff;
display: block;
text-decoration: none;
float: left;
}
ul.topnav li a:hover{
background: url('http://www.sohtanaka.com/web-design/examples/drop-down-menu/topnav_hover.gif') no-repeat center top;
}
ul.topnav li span { /*--Drop down trigger styles--*/
width: 17px;
height: 35px;
float: left;
background: url('http://www.sohtanaka.com/web-design/examples/drop-down-menu/subnav_btn.gif') no-repeat center top;
}
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;
background: #333;
margin: 0; padding: 0;
display: none;
float: left;
width: 170px;
border: 1px solid #111;
}
ul.topnav li ul.subnav li{
margin: 0; padding: 0;
border-top: 1px solid #252525; /*--Create bevel effect--*/
border-bottom: 1px solid #444; /*--Create bevel effect--*/
clear: both;
width: 170px;
}
html ul.topnav li ul.subnav li a {
float: left;
width: 145px;
background: #333 url('http://www.sohtanaka.com/web-design/examples/drop-down-menu/dropdown_linkbg.gif') no-repeat 10px center;
padding-left: 20px;
}
html ul.topnav li ul.subnav li a:hover { /*--Hover effect for subnav links--*/
background: #222 url('http://www.sohtanaka.com/web-design/examples/drop-down-menu/dropdown_linkbg.gif') no-repeat 10px center;
}
JQ to JQ managment, marked all pages, and that is all.
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Re: Drop down menu
ok but one problem, were do i place it in the overall header? :3 thanks
ddog- Forumember
- Posts : 50
Reputation : 0
Language : english
Re: Drop down menu
Nera any chance you could do my suggestion I would really appriciate it.
I don't really underatand how to replace the images or stuff.
I don't really underatand how to replace the images or stuff.
Re: Drop down menu
@ddog
For punBB replace this
@Pivotone what images? I have replaced all though a long time ago. They are added in the code I gave you.
For punBB replace this
- Code:
<ul class="clearfix">
<li>{GENERATED_NAV_BAR}</li>
</ul>
@Pivotone what images? I have replaced all though a long time ago. They are added in the code I gave you.
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Re: Drop down menu
it works, thanks so much, now i just need to find out how to move the navbar into the center, thank you, your a great Support Mod.
ddog- Forumember
- Posts : 50
Reputation : 0
Language : english
Re: Drop down menu
So does this replace your origional nav bar?
And I can't see any image sources?
So if i have an image for "Tutorials " that has sub nav
how would i define the image for the sub nav ? Drop down box.
And I can't see any image sources?
So if i have an image for "Tutorials " that has sub nav
how would i define the image for the sub nav ? Drop down box.
Re: Drop down menu
Install it and you will see. All the images are in it. If you remove your bar from templates it will replace your bar.
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum