"Fixed Header with Main Menu and Login"
Bootstrap 3.2.0 Snippet by abhimanyusankhyan4

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<header id="header" class="clearHeader">
<div class="container">
<nav class="navbar">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-3">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href=""><img src="images/logo.png" class="img-responsive"/></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div id="" class="menu-wrap">
<div class="menu-sidebar pull-right">
<ul class="nav navbar-nav">
<li><a class="dash-button" href="#">login</a></li>
<li class="dropdown">
<a class="dash-button" href="#">Register</a>
</li>
</ul>
<!-- <a href="" class="dash-button">Login</a>
<a href="" class="dash-button">Register</a> -->
</div>
<div id="navbar-collapse-3" class="collapse navbar-collapse main-navigation " role="navigation" aria-label="Primary Menu">
<ul id="menu-main-menu" class="primary-menu nav navbar-nav ">
<li><a href="">Home</a></li>
<li><a href="">About</a></li>
<li><a href="">store</a></li>
<li><a href="">news & resources</a></li>
</ul>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*****Reset css********/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; color:#101010; }
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
p,label{ font-family: 'GT-Walsheim', sans-serif; color: #101010; }
a{ text-decoration:none; font-family: 'GT-Walsheim', sans-serif; }
h1,h2,h3,h4,h5,h6,h7,strong{ font-family: 'GT-Walsheim', serif; }
input,select,textarea,span{ font-family: 'GT-Walsheim', sans-serif; }
.section {
padding: 4% 0;
}
.section-head {
text-align: center;
margin: 0 0 2rem auto;
}
.section-head h2 {
font: 600 30px/40px GT-Walsheim;
margin: 0 0 1rem auto;
}
.section-head p {
font: 500 17px/21px GT-Walsheim;
}
#header {
display: block;
padding: 20px 0 20px 0;
background-size: 100% 100%;
z-index: 99;
width: 100%;
transition: 500ms;
background-color: #009add;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: