Skip to content

Instantly share code, notes, and snippets.

@ancientstraits
Created August 19, 2021 16:03
Show Gist options
  • Save ancientstraits/4a92531e6bb41dd534a1939d44579ec5 to your computer and use it in GitHub Desktop.
Save ancientstraits/4a92531e6bb41dd534a1939d44579ec5 to your computer and use it in GitHub Desktop.
NavBar
<nav>
<ul id="links">
<li><a href="#">Lorem.</a></li>
<li><a href="#">Consequuntur.</a></li>
<li><a href="#">Reiciendis.</a></li>
<li><a href="#">Qui.</a></li>
<li><a href="#">Necessitatibus!</a></li>
</ul>
</nav>
@import url("https://fonts.googleapis.com/css2?family=Georama&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Georama:wght@700&display=swap");
* {
font-family: Georama;
font-weight: 400;
}
body {
margin: 0;
}
b,
strong {
font-weight: 700;
}
#links a {
display: block;
}
#links {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
border-top-style: solid;
border-bottom-style: solid;
border-color: gray;
}
#links li {
float: left;
}
#links li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
border-right-style: solid;
border-width: 2px;
border-color: gray;
font-weight: 700;
}
#links li a:hover {
background-color: #111;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment