The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Drop down menu

View previous topic View next topic Go down

In progress Drop down menu

Post by ddog on August 5th 2011, 6:40 pm

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
Forumember

Posts : 50
Reputation : 0
Language : english

Back to top Go down

In progress Re: Drop down menu

Post by Pivotphone on August 5th 2011, 7:39 pm

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

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. on August 5th 2011, 7:46 pm

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

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

In progress Re: Drop down menu

Post by ddog on August 5th 2011, 8:04 pm

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

ddog
Forumember

Posts : 50
Reputation : 0
Language : english

Back to top Go down

In progress Re: Drop down menu

Post by Pivotphone on August 5th 2011, 8:15 pm

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.



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. on August 5th 2011, 8:24 pm

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

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

In progress Re: Drop down menu

Post by ddog on August 5th 2011, 8:28 pm

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

Back to top Go down

In progress Re: Drop down menu

Post by Pivotphone on August 5th 2011, 10:23 pm

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.

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. on August 5th 2011, 10:43 pm

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

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

In progress Re: Drop down menu

Post by Seacrest on August 7th 2011, 4:04 pm

thank's

Seacrest
New Member

Posts : 1
Reputation : 0
Language : Indonesia

Back to top Go down

View previous topic View next topic Back to top


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