move the nav style to the global style

This commit is contained in:
Fries 2023-07-15 20:41:00 -07:00
parent f0753ac18c
commit 5d14a6cc08
2 changed files with 10 additions and 11 deletions

View file

@ -1,16 +1,6 @@
<nav id="nav-container" aria-label="a navigation bar with links"> <nav aria-label="a navigation bar with links">
<a href="/">Home</a> <a href="/">Home</a>
<a href="/blog">Blog</a> <a href="/blog">Blog</a>
<a href="/projects">Projects</a> <a href="/projects">Projects</a>
<a href="/friends">Friends</a> <a href="/friends">Friends</a>
</nav> </nav>
<style>
#nav-container {
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
gap: 20px;
}
</style>

View file

@ -82,3 +82,12 @@ hr {
hr { hr {
border: 1px solid; border: 1px solid;
} }
nav {
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
gap: 20px;
padding-top: 10px;
}