The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Drop down menu

4 posters

Go down

In progress Drop down menu

Post by ddog 5th August 2011, 18:40

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
ddog
ddog
Forumember

Posts : 50
Reputation : 0
Language : english

Back to top Go down

In progress Re: Drop down menu

Post by Pivotphone 5th August 2011, 19:39

I would like this aswell maby even make a live show and people can watch.
avatar
Pivotphone
Forumember

Posts : 204
Reputation : 3
Language : english

http://www.creative-node.com

Back to top Go down

In progress Re: Drop down menu

Post by Nera. 5th August 2011, 19:46

Hi,

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.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

In progress Re: Drop down menu

Post by ddog 5th August 2011, 20:04

ok but one problem, were do i place it in the overall header? :3 thanks
ddog
ddog
Forumember

Posts : 50
Reputation : 0
Language : english

Back to top Go down

In progress Re: Drop down menu

Post by Pivotphone 5th August 2011, 20:15

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.


avatar
Pivotphone
Forumember

Posts : 204
Reputation : 3
Language : english

http://www.creative-node.com

Back to top Go down

In progress Re: Drop down menu

Post by Nera. 5th August 2011, 20:24

@ddog
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.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

In progress Re: Drop down menu

Post by ddog 5th August 2011, 20:28

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
ddog
Forumember

Posts : 50
Reputation : 0
Language : english

Back to top Go down

In progress Re: Drop down menu

Post by Pivotphone 5th August 2011, 22:23

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.
avatar
Pivotphone
Forumember

Posts : 204
Reputation : 3
Language : english

http://www.creative-node.com

Back to top Go down

In progress Re: Drop down menu

Post by Nera. 5th August 2011, 22:43

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.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

In progress Re: Drop down menu

Post by Seacrest 7th August 2011, 16:04

thank's
avatar
Seacrest
New Member

Posts : 1
Reputation : 0
Language : Indonesia

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum