Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save harilee1325/a76271bb5847a64c82f7356899ac4935 to your computer and use it in GitHub Desktop.
Save harilee1325/a76271bb5847a64c82f7356899ac4935 to your computer and use it in GitHub Desktop.
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover:not(.active) {
background-color: #111;
}
.active {
background-color: #4CAF50;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment