2012-07-13, 05:30 AM
I'm trying to replicate the menu bar on mybb.com just like above!
Here are the codes I'm putting in my global.css
But it breaks my layout..
Here is a pic of my normal layout
Here is what happens to the code when I put it in..
Any ideas to make it fit and go back to the fixed width? so It lines up good?
Here are the codes I'm putting in my global.css
#menu {
position: absolute;
top: 91px;
right: 0;
padding-left: 41px;
background: url(images/menu_bg_start.png) no-repeat;
font-family: Tahoma, 'Trebuchet MS', Arial, sans-serif
}
#menu ul {
list-style: none;
margin: 0;
padding: 0;
height: 34px;
background: #016db0 url(images/menu_bg.png) repeat-x;
}
#menu li {
float: left;
margin-top: 4px;
margin-right: 10px;
}
#menu li a {
padding: 4px 10px 3px 10px;
color: #fff;
text-decoration: none;
display: block;
border-bottom: 0;
}
#menu li a:hover {
color: #ffffff;
border-bottom: 3px solid #ffffff;
}
#menu li.active a, #menu li.active a:hover {
background: url(images/menu_bg_active.png) no-repeat top left;
color: #000;
padding: 4px 10px 4px 13px;
border-bottom: 2px solid #ffffff;
}
#menu li.active {
background: url(images/menu_bg_active2.png) no-repeat top right;
padding-right: 4px;
position: relative;
bottom: -1px;
}
But it breaks my layout..
Here is a pic of my normal layout
Here is what happens to the code when I put it in..
Any ideas to make it fit and go back to the fixed width? so It lines up good?