My navbar will collapse when i shrink the page size but, once it turns into a "hamburger" at the top it will highlight with a scroll over but I can not click it at all. Also, I am wondering why my "hamburger" appears on the right side of the navbar instead of the left. I would like it on the left. I have tried changing the class type and some of the css but, I just don't see whats wrong with it.
HTML:
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/stylesheet.css" rel="stylesheet">
</head>
<body>
<div class="row">
<nav class="navbar navbar-custom" role="navigation">
<div class="navbar-header-xs">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#collapse">
<span class="sr-only"> Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="collapse">
<ul class="nav navbar-nav">
<li><a href="index.html"><img src= "images/QBlogo.png" /></a></li>
<li><a href="work.html">Work</a></li>
<li><a href="about.html">About</a></li>
<li><a href="skills.html">Skills</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
<nav>
</div>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="js/bootstrap.min.js"</script>
CSS:
body {
padding: 0px;
margin-top: align;
background: url(..images/QBhead.png) no-repeat center center fixed;
background size: 100%;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
}
.navbar {
margin-bottom: 0;
max-width: 100%;
max-height: 10%;
}
.navbar-custom {
background-color:#CCE1F4;
border-radius:2px;
font-size: 22px;
}
.navbar-custom .navbar-brand {
color: #2f4f7f;
}
.navbar-custom .navbar-nav > li > a {
color: #2f4f7f;
}
.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li > a:focus {
color: #000000;
background-color: transparent
}
.navbar-custom .navbar-toggle {
border-color: #2f4f7f;
}
.navbar-custom .navbar-toggle:hover,
.navbar-custom .navbar-toggle:focus {
background-color: #2f4f7f;
}
.navbar-custom .navbar-toggle .icon-bar {
background-color: #2f4f7f;
}
.navbar-nav > li{
align: left;
padding-left:25px;
padding-right:25px;
padding-top: 5px;
}
There is nothing worng with nav menu
the only problem is missing closing tag >
here
<script src="js/bootstrap.min.js"</script>
should be
<script src="js/bootstrap.min.js"></script>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments