I'm doing an assignment with CSS-grid and part of the criteria is to build the website entirely with css-grid and html, however, when I'm trying to align the navbar items with css-grid I keep running into a problem where the links just stay in their original place. I've created a codepen.io if that's useful: https://codepen.io/spatrick195/pen/XBzYJe HTML
<div class="page-layout">
<div class="top-nav">
<div id="nav-brand"><a id="nav-brand" href="#">SR-2018</a></div>
<div class="nav-links">
<a class="nav-links" href="#">Login</a>
<a class="nav-links" href="#">Sign Up</a>
</div>
</div>
</div>
CSS:
* {
margin: 0;
padding: 0;
}
.page-layout{
display: grid;
grid-template-columns: 1fr 2fr 1fr;
grid-template-rows: auto;
grid-gap: 10px;
}
.top-nav{
grid-column: span 3;
padding: .5rem 1rem;
background-color: #FAFAFA;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
a{
text-decoration: none;
}
#nav-brand{
grid-column: 1;
}
.nav-links{
grid-column: 3;
}