DROP DOWN NAVBAR FOR PHPBB2
2 posters
Page 1 of 1
DROP DOWN NAVBAR FOR PHPBB2
Can you guys help me make a drop down navbar? I have phpbb2 forum.
So when you hover a navbar, the list will automatically drop down. Then when you move again your mouse from it, it will go back to its place.
I want to replace my current navbar to this one.
So when you hover a navbar, the list will automatically drop down. Then when you move again your mouse from it, it will go back to its place.
I want to replace my current navbar to this one.
Last edited by JAN2XONLINE on February 19th 2013, 1:11 am; edited 4 times in total
Re: DROP DOWN NAVBAR FOR PHPBB2
When you align it where you want it to stay, add to the CSS:
position: fixed;
position: fixed;
Mike- Hyperactive
- Posts : 4255
Reputation : 471
Language : English, HTML, CSS
Location : Loveland, Colorado
Re: DROP DOWN NAVBAR FOR PHPBB2
^
I don't get it. So I'll just paste that code in my css sheet?
Here's my code though if you want to check it.
I want my navbar to stay on top always just like the navbar even when scrolling.
I don't get it. So I'll just paste that code in my css sheet?
Here's my code though if you want to check it.
- Code:
ul.topnav {
list-style: none;
padding: 0 20px;
margin: 0;
float: left;
width: 1250px;
background: #222;
font-size: 1em;
background: url(http://hitskin.com/themes/17/49/21/i_back_catg.png) repeat-x;
}
ul.topnav li {
float: left;
margin: 0;
padding: 0 15px 0 0;
position: relative; /*--Declare X and Y axis base--*/
}
ul.topnav li a{
padding: 10px 5px;
color: #000;
display: block;
text-decoration: none;
float: left;
}
ul.topnav li a:hover{
background: url(http://hitskin.com/themes/17/49/21/i_back_title.png) no-repeat center top;
}
ul.topnav li span { /*--Drop down trigger styles--*/
width: 17px;
height: 35px;
float: left;
background: url(http://i43.servimg.com/u/f43/14/73/12/96/subnav10.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;
left: 0; top: 35px;
background: #333;
margin: 0; padding: 0;
display: none;
float: left;
width: 230px;
-webkit-border-bottom-right-radius: 05px;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius-bottomright: 05px;
-moz-border-radius-bottomleft: 5px;
border-bottom-right-radius: 05px;
border-bottom-left-radius: 5px;
border: 1px solid #111;
}
ul.topnav li ul.subnav li{
margin: 0; padding: 0;
border-top: 1px solid #252525;
border-bottom: 1px solid #444;
clear: both;
width: 230px;
-webkit-border-bottom-right-radius: 05px;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius-bottomright: 05px;
-moz-border-radius-bottomleft: 5px;
border-bottom-right-radius: 05px;
border-bottom-left-radius: 5px;
}
html ul.topnav li ul.subnav li a {
float: left;
width: 200px;
background: #ffaa00 url(http://i43.servimg.com/u/f43/14/73/12/96/dropdo10.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://i43.servimg.com/u/f43/14/73/12/96/dropdo10.gif) no-repeat 10px center;
}
I want my navbar to stay on top always just like the navbar even when scrolling.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum