The Problem :
I don’t know why i cant solve my " Your #nav-bar
should always be at the top of the viewport." problem.
Your code so far
<!-- file: index.html -->
<header id="header">
<div class="logo">
<img src="https://www.pngitem.com/pimgs/m/460-4605591_sell-your-brand-here-hd-png-download.png" alt="Logo image" id="header-img">
</div>
<nav id="nav-bar">
<ul>
<li><a href="#features" class="nav-link">Features</a></li>
<li><a href="#product-vid" class="nav-link">How it works</a></li>
<li><a href="#product" class="nav-link">Product</a></li>
</ul>
</nav>
</header>
/* file: styles.css */
header {
position: fixed;
top: 0;
min-height: 75px;
padding: 0 20px;
display: flex;
justify-content: space-around;
align-items: center;
background-color: rgb(250, 235, 215);
}
nav {
font-weight: 500;
}
nav > ul {
width: 45vw;
display: flex;
flex-direction: row;
justify-content: space-around;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Challenge Information:
Product Landing Page - Build a Product Landing Page