hi,
I’m struggling to the the .nav to be on the right hand side like the demo doc. it either looks like the image posted or it sits on top of the main-section
Link to the challenge:
{
font-size:2.0rem;
background-color:white;
}
CSS:
* {
font-family: Arial, sans-serif;
font-size: 18px;
}
header {
border-bottom: 1px solid white;
margin-top: -10px;
text-align: center;
}
nav {
background-color:pink;
color: white;
width: 200px;
position:left;
top: 0;
left: 0;
height: 100%;
overflow-y: auto;
padding-top: 20px;
display:flex;
}
.nav-link {
display: block;
text-decoration: none;
letter-spacing: 0.1rem;
color: white;
border-bottom: 1px solid white;
transition: background-color 0.3s;
padding: 10px 20px;
text-align:left;
display:flex;
}
.nav-link:hover {
background-color: rgb(232, 199, 200);
color: #173837;
}
.main-section {
padding: 20px;
margin-left: 220px;
font-size:1.1rem;
display:;
}
header {
font-size: 1.1em;
margin-top: 0;
}
@media (max-width: 768px) {
nav {
width: 100%;
height: auto;
position: relative;
}
.main-section {
margin-left: 0;
text-align:left;
}
.code{
background-color:pink;
}