nav {
  padding: 0 0 10px 0;
  border-bottom: 1px solid gray;
}
nav a {
  padding: 5px 10px;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
  background-color: #eee;
  border-radius: 5px;
}
nav a:visited, a:link {
  color: #607D8B;
}
nav a:hover {
  color: #039be5;
  background-color: #CFD8DC;
}
nav a.active {
  color: #039be5;
  font-weight: bold;
}

nav {
  padding: 0 0 10px 0;
  border-bottom: 1px solid gray;
}
nav a {
  padding: 5px 10px;
  text-decoration: none;
  margin: 10px 5px 0;
  display: inline-block;
  background-color: #eee;
  border-radius: 5px;
}
nav a:visited, a:link {
  color: #607D8B;
}
nav a:hover {
  color: #039be5;
  background-color: #CFD8DC;
}
nav a.active {
  color: #039be5;
  font-weight: bold;
}

Fix margin for nav links
Fix margin for nav links
