<header>
  <nav>
    <a href="#" class="navlink active">home</a>
    <a href="#" class="navlink">jobs</a>
    <a href="#" class="navlink">reports</a>
    <a href="#" class="navlink">messages</a>
  </nav>
  <div class="search">
    <input type="txt" placeholder="Enter search word" class="txtsearch">
  </div>
</header>
*{
  padding:0;
  margin:0;
  box-sizing:border-box;
}
a{
  text-decoration:none;
  color: #FFF;
}
header{
 width:100%;
  overflow:hidden;
  background-color: #000;
}
nav{
  height:50px;
  width:80%;
  float:left;
  background-color: #000;
  font-family: 'Arial';
  font-size:12px;
}
nav .navlink{
  text-transform:uppercase;
  letter-spacing:1px;
  height:50px;
  line-height:4;
  display:inline-block;
  padding: 0px 20px;
}
nav .navlink:visited{
/**/  
}
nav .navlink:hover{
  color:#15B6B8;
}
nav .navlink:active {
 /**/
}
nav .active, nav .active:hover{
 background-color: #15B6B8;
  color: #000;
  font-weight:bold;
}
header .search{
  width:20%;
  float:right;
  color: #FFF;
}
header .search .txtsearch{
  border-radius: 5px;
  background-color: #DDD;
  padding: 8px 15px;
  border: 1px solid #DDD;
  outline: 0;
  margin-top:7px;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.