@burnout426
here is everything that is related to the menu before going into the media :
.menu {
display: flex;
column-gap: 50px;
}
.menu_link {
display: block;
font-family: var(--raleway);
text-transform: uppercase;
font-style: 12px;
letter-spacing: 0.6px;
font-weight: 700;
padding: 7px;
padding-top: 0;
position: relative;
}
.active.menu_link::after,
.menu_link::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: 2px;
background-color: #FCBB08;
transition: width 0.2s;
}
.active.menu_link::after,
.menu_link:hover::after {
width: 100%;
}
and media also provides some changes but nothing that could change it I think to not work.
.menu {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
background-color: #fff;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
row-gap: 30px;
z-index: 10;
transform: translateY(-1000px);
transition: transform 0.2s;
}
I got it that on 992px it changes into the drop down menu. but it doesnt matter as my code is 100% same as my teacher got, but he is using Mozilla and those href # works perfectly fine.
thought to add full nav html just in case :
<nav class="header_nav">
<a class="hero-logo logo" href="#">
<img src="img/logo.svg" width="80" height="64" alt="logo">
</a>
<button class="burger" type="button">
<div class="burger__line"></div>
</button>
<ul class="menu">
<li class="menu_item">
<a class="menu_link active" href="#">
HOME
</a>
</li>
<li class="menu_item">
<a class="menu_link" href="#about">
ABOUT US
</a>
</li>
<li class="menu_item">
<a class="menu_link" href="#portfolio">
PORTFOLIO
</a>
</li>
<li class="menu_item">
<a class="menu_link" href="#team">
OUR TEAM
</a>
</li>
<li class="menu_item">
<a class="menu_link" href="#">
BLOG
</a>
</li>
<li class="menu_item">
<a class="menu_link" href="#contact">
CONTACT
</a>
</li>
</ul>
</nav>
do not mind only one underscore in the classes we are just starting going into the BEM but I dont think it matters for this situation.