CodePen

HTML

            
              <nav>
  <ul class="menu">
    <li><a href="#" >Home</a></li>
    <li><a href="#" >About</a></li>
    <li><a href="#" >Design</a></li>
    <li><a href="#" >Community Benefits</a></li>
    <li class="current-menu-item"><a href="#" >Sustainability</a></li>
  </ul>
</nav>

            
          
!

CSS

            
              nav {
	height: 50px;
	text-align: center;
	text-transform: uppercase;
	background: #fff;
}
nav ul, nav ul li {
	margin: 0;
	padding: 0;
	list-style: none;
}
nav ul li {
	display: inline-block;
	*display: inline;
	zoom: 1;
	margin-right: 10px;
}
nav ul li a {
	display: block;
	line-height: 50px;
	padding: 0 20px;
	margin-right: 20px;
	color: #000;
	text-decoration: none;
	font-size: 22px;
}
nav ul li:last-of-type {
	margin-right: 0;
}
nav ul li a:hover {
	background-color: #dfdcda;
}
nav ul li.current-menu-item a{
	background-color: #dfdcda;
	position: relative;
}
nav ul li.current-menu-item a:after {
	position: absolute;
	top:100%;
	left: 50%;
	content: "";
	display: block;
	border-top: 10px solid #dfdcda;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
  margin-left: -20px;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              $( ".menu li" ).click( function() {
    $( ".menu li" ).removeClass( "current-menu-item" );
    $( this ).addClass( "current-menu-item" );
});
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................