Product Landing Page - Build a Product Landing Page

Tell us what’s happening:
I have passed the “tests”, but am trying to perfect my landing page. (It looks awful, I know.) I have a couple of issues. One is that my nav-bar is overlapping my logo. I created a logo on Canva, but it won’t appear on the image.
Any suggestions to fix that? Thanks for any help. You all are awesome!

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang='en'>
<head>
  <meta charset="UTF-8"/>
  <meta name="viewport" content="width=device-width, initial scale=1.0"/>
<title>Product Landing Page</title>
<link rel="stylesheet" href="styles.css"/>
</head>
<body>
  <div id="page-wrapper">
<header id="header" style="display:flex; flex-wrap:wrap; padding:30px">
  <div class="logo">
  <img id="header-img" src="https://www.canva.com/design/DAFbOcHq5pY/ly2hXVe8oJyogQAXJCUq3w/view?utm_content=DAFbOcHq5pY&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink"
  alt="Logo"></img>
  </div>
<nav id="nav-bar" class="nav-bar">
  <ul>
<li><a class="nav-link" href="#Quality_ingredients" id="Quality_ingredients">Quality ingredients</a></li>
<li><a class="nav-link" href="#Healthy" id="Healthy">Healthy</a></li>
<li><a class="nav-link" href="#Pricing" id="Pricing">Pricing</a></li>
</ul>
</nav>
</header>
<h1>Quality ingredients</h1>
<p>Non-gmo, organic vegetables and wild rice, free-range chicken, and bone broth made fresh daily.</p>
<h1>Healthy</h1>
<p>A full serving of vegetables in each bowl with lean chicken, nutrient dense bone broth.</p>
<iframe width="width" height="315" src="https://youtu.be/W7_i5tY-5BY" id="video" frameborder="0" allowfullscreen></iframe>
<section id="pricing">
<h1>Pricing</h1>
<div class="pricing" id="mug">
  <div class="sizing">Mug</div>
  <h2>$3</h2>
  <button class="btn">Select</button>
</div>
<div class="pricing" id="bowl">
  <div class="sizing">Bowl</div>
  <h2>$4.50</h2>
  <button class="btn">Select</button>
</div>
<div class="pricing" id="quart">
  <div class="sizing">Quart</div>
  <h2>$15</h2>
  <button class="btn">Select</button>
  </div>  
</section>
</body>
<form id="form" action="https://www.freecodecamp.com/email-submit" class="email">
  <fieldset>
    <label for="email" id="email-label">Enter your email<input id="email" name="email" type="email" placeholder="email" required/></label>
  </fieldset>
  <input type="submit" id="submit" value="Submit"/>

</form>
<footer></footer>

</html>

/* file: styles.css */
*,
::before,
::after {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

@media only screen and (max-width:720px){
  .image-wrapper {grid-template-columns:1fr;}
}
.logo{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  top: 
}
#header-img{
  width:50vw;
  height:10vh; 
}
#nav-bar{
  display:flex;
  flex-wrap:no-wrap;
  padding:30px;
  justify-content:space-between;
  position:fixed;
  top:0px;
}
body{
  background-color:light-yellow;
}
.pricing{
  display:flex;
  flex-direction:column;
  align-items:center;
  border:1px solid black;
  border-radius:3px;

}
#page-wrapper{
  position:relative;
}
h1{
  font-size:24px;

}
h2{
  font-size:12px;
}
p{
  font-size:20px;
}
.btn{
  padding:0 20px;
  height:40px;
  font-size:1em;
  font-weight:900;
  text-transform:uppercase;
  border:3px black solid;
  background:transparent;
  cursor:pointer;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

For the overlapping there are many ways to solve this problem.
As you already fixed your navbar to the top, you could also fix it to the right side by adding right: 0; after top: 0 .
About the Logo, I don’t know canva but they might provide a special Link to embed the Logo in your website. You will need to search for that.

Thank you very much. I was able to fix the overlapping nav-bar situation. I will try to find a solution to the logo. I appreciate your help!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.