Menu Fixed Responsive
HTML
<link href='http://fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css' />
<div class='fixed'>
<header class="header-fixed">
<div class="header-limiter">
<h1><a href="#">Company<span>logo</span></a></h1>
<nav>
<a href="#">Home</a>
<a href="#" class="selected">Blog</a>
<a href="#">Pricing</a>
<a href="#">About</a>
<a href="#">Faq</a>
<a href="#">Contact</a>
</nav>
</div>
</header>
</div>
CSS
body {
background-color: #EFF3FA;
}
.header-fixed {
background-color: #fff;
border-bottom: 1px solid #c2c9d4;
padding: 20px 40px;
height: 80px;
color: #444;
box-sizing: border-box;
top: -100px;
-webkit-transition: top 0.3s;
transition: top 0.3s;
}
.header-fixed .header-limiter {
max-width: 1200px;
text-align: center;
margin: 0 auto;
position: fixed;
}
/* The header placeholder. It is displayed when the header is fixed to the top of the
browser window, in order to prevent the content of the page from jumping up. */
.header-fixed-placeholder {
height: 80px;
display: none;
}
/* Logo */
.header-fixed .header-limiter h1 {
float: left;
font: normal 28px 'Abel', sans-serif;
line-height: 40px;
margin: 0;
}
.header-fixed .header-limiter h1 span {
color: #5383d3;
}
/* The navigation links */
.header-fixed .header-limiter a {
color: red;
text-decoration: none;
}
.header-fixed .header-limiter nav {
font: 18px 'Abel', sans-serif;
line-height: 40px;
float: right;
}
.header-fixed .header-limiter nav a {
display: inline-block;
padding: 0 5px;
text-decoration: none;
color: #444;
opacity: 0.9;
}
.header-fixed .header-limiter nav a:hover {
opacity: 1;
}
.header-fixed .header-limiter nav a.selected {
color: #608bd2;
pointer-events: none;
opacity: 1;
}
/* Fixed version of the header */
body.fixed .header-fixed {
padding: 10px 40px;
height: 50px;
position: fixed;
width: 100%;
top: 0;
left: 0;
z-index: 1;
}
body.fixed .header-fixed-placeholder {
display: block;
}
body.fixed .header-fixed .header-limiter h1 {
font-size: 24px;
line-height: 30px;
}
body.fixed .header-fixed .header-limiter nav {
line-height: 28px;
font-size: 13px;
}
/* Making the header responsive */
@media all and (max-width: 600px) {
.header-fixed {
padding: 20px 0;
height: 75px;
}
.header-fixed .header-limiter h1 {
float: none;
margin: -8px 0 10px;
text-align: center;
...