2014-07-13, 08:51 AM
Hello,
I am trying to include a fixed navigation bar in to the forums to make it look more stylish and good but the only problem Mybb seems to be conflicting with it.
Re writting it in JQuery is not an option as I won't users to use it even if they don't have Java Script enabled/Installed and I already write this and the rest of the site is working fine with it.
So any solutions or can someone please modify the code to work with Mybb?
See By The Snapshot What It Does: http://oi59.tinypic.com/whecn8.jpg
Thanks!
I am trying to include a fixed navigation bar in to the forums to make it look more stylish and good but the only problem Mybb seems to be conflicting with it.
Re writting it in JQuery is not an option as I won't users to use it even if they don't have Java Script enabled/Installed and I already write this and the rest of the site is working fine with it.
So any solutions or can someone please modify the code to work with Mybb?
See By The Snapshot What It Does: http://oi59.tinypic.com/whecn8.jpg
<style>
.image {
left: 0%;
position: absolute;
width: 11%;
}
#navigation {
position: fixed;
z-index:1;
top: 0;
width: 100%;
color: #ffffff;
height: 35px;
text-align:center;
padding-top: 15px;
/* Adds shadow to the bottom of the bar */
-webkit-box-shadow: 0px 0px 8px 0px #000000;
-moz-box-shadow: 0px 0px 8px 0px #000000;
box-shadow: 0px 0px 8px 0px #000000;
/* Adds the transparent background */
background-color: rgba(1, 1, 1, 0.60);
color: rgba(1, 1, 1, 50);
}
#navigation a {
font-size: 14px;
padding-left: 15px;
padding-right: 15px;
color: white;
text-decoration: none;
}
#navigation a:hover {
color: grey;
}
ul {
list-style: none;padding: 0px;margin: 0px;
}
ul li {
display: block;position: relative;float: left;border:1px solid #000
}
li ul {
display: none;
}
ul li a {
display: block;background: #000;padding: 5px 10px 5px 10px;text-decoration: none;
white-space: nowrap;color: #fff;
}
ul li a:hover {
background: #f00;
}
li:hover ul {
display: block; position: absolute;
}
li:hover li {
float: none;
}
li:hover a {
background: #000000;
}
li:hover li a:hover {
background: #000;
}
#drop-nav li ul li {
border-top: 0px;
}
#main_logo {
float:left;
}
</style>
<!DOCTYPE html>
<html lang="en-US">
<head>
<link rel="stylesheet" href="main.css" type="text/css" />
<title>Static Navigation</title>
</head>
<div id="navigation">
<img src="images/logo.png" class="image" style=''
> </img>
<text id="links">
<a href="index.php">Home</a>
<a href="about.php">About</a>
<a href="social.php">Social</a>
<li style='display: inline-block;'><a href="#">Community</a>
<ul>
<li><a href="/forums">Forums</a></li>
<li><a href="/news">News </a></li>
</ul>
</li>
<li style='display: inline-block;'><a href="#">More</a>
<ul>
<li><a href="donate.php">Donate</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
</li>
</text>
</div>
Thanks!