Example
Be sure to resize the page!
HTML
<nav id="small">
<a href="#menu">Menu</a>
</nav>
<main>
<p>Page content goes here</p>
</main>
<nav id="menu">
<a href="">INFS 205</a>
<a href="">INFS 310</a>
<a href="">INFS 315</a>
<a href="">INFS 361</a>
<a href="">INFS 420</a>
<a href="">INFS 490</a>
<a href="">INFS 491</a>
</nav>
CSS
body {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-content: flex-start;
}
header {
order: 1;
}
#small {
order: 2;
}
main {
order: 3;
}
#menu {
order: 4;
}
footer {
order: 5;
}
#menu {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
}
@media (min-width: 800px) {
#small {
display: none;}
#menu {
order: 2;}
}
nav a {
padding: 10px;
flex-grow: 0;
flex-shrink: 0;
text-decoration: none;
text-align: center;
}
/* add the interactive appearance */
nav a:link {
color: blue;
background-color: white;
}
nav a:visited {
color: blue;
background-color: white;
}
nav a:focus {
color: white;
background-color: blue;
}
nav a:hover {
color: white;
background-color: blue;
}
nav a:active {
color: white;
background-color: blue;
}