Utility Menu

In this example below you will see how to do a Utility Menu with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by togrul, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright togrul ©

Technologies

  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Utility Menu</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  
<div class="showhim" id="top-nav" style="margin-top: -2px;"><a href="#">SEND FLOWERS</a>&nbsp; &nbsp;|&nbsp; &nbsp;<a href="#">CONTACT</a>

<div class="showme">
  <a href="#">CONTACT</a>&nbsp; &nbsp;|&nbsp; &nbsp;<a href="#">DIRECTIONS</a>
</div>
  </div>
  <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>

  

</body>

</html>

/*Downloaded from https://www.codeseek.co/togrul/utility-menu-XbZrKp */
#top-nav{
	margin-top: 15px;
	font-family: Gotham-Book;
	font-size: 9px;
	float:right;
}
#top-nav a{
    text-decoration:none;  
    margin: 4px; 
    padding: 3px 3px 3px 3px; 
    font-size: 9px;
    color: #000;
}
#top-nav a:hover{
    font-size: 9px;
/*    text-decoration: overline underline;*/
    color: #666666;
}

.showme{ 
  padding:20px;
display: none;
}
.showhim:hover .showme{
display : block;
}
.showhim:hover .ok{
display : none;
}

Comments