Im trying to get the nav to stack when the screen is at a min width of 767px.
I cant seem to get them to perfectly stack on top of each other. When i get it to that width the words just scrunch up.
This is what i have for code so far
html
<header>
<nav>
<a href="/">Home</a>
<a href="winter.html">Winter</a>
<a href="spring.html">Spring</a>
<a href="summer.html">Summer</a>
<a href="autumn.html">Autumn</a>
</nav>
</header>
css
@media screen and (max-width: 767px){
nav a{
float: none;
width: 100%;
}
}
im not sure what im doing wrong but im trying to get it to look like this Content stacked up and centered when the screen is a certain width