<main>


<nav role='navigation'>
  <a href="#0">Menu 1</a>
  <a href="#0">Menu 2</a>
  <a href="#0">Menu 3</a>
</nav>  
  
 </main>

<div class="second-main">
  <div class="nav-two" role="navigation">
      <a href="#0">Menu 1</a>
  <a href="#0">Menu 2</a>
  <a href="#0">Menu 3</a>
  </div>
</div>
body {
  background: #40BDB7;
}

main, nav {
  text-align: center;
  background: white;
  margin: 20px 0;
  padding: 5px;
}

nav a {
  text-decoration: none;
  background: brown;
  border-radius: 5px;
  color: white;
  padding: 8px 10px;
}

.second-main, nav-two {
  text-align: center;
  background: white;
  margin: 20px 0;
  padding: 5px;
}

.nav-two a  {
 text-decoration: none;
  background: brown;
  border-radius: 5px;
  color: white;
  padding: 8px 10px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.