Product Landing Page - Build a Product Landing Page

My code so far:

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <link rel="stylesheet" href="styles.css">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Product Landing Page</title>
<header id="header">
  <img id="header-img" src="" alt="Honest Amish logo"></img>

<nav id="nav-bar">
    <li><a href="#beard-balms" class="nav-link">Beard Balms</a></li>
    <li><a href="#beard-oils" class="nav-link">Beard Oils</a></li>
    <li><a href="#merch-shop" class="nav-link">Merch Shop</a></li>

<form id="form" action="">
 <input type="email" id="email" placeholder="Please Enter Your Email" name="email"> 
<input id="submit" type="submit" value="Get Started" required>

<p>Our all natural and organic recipes help condition, maintain, and control growing beards. We use absolutely ​no ​synthetic ​​chemicals, no artificial preservatives, no imitation fragrances or colorants in any of our products. All oils, waxes, and butters used are natural or organic.  We only use 100% recyclable glass or aluminum tins for our products and avoid plastic containerization. Made in the U.S.A. by hand for an honest wage.</p>
<section id="beard-balms">
<h3 class="headers">Our Beard Balms</h3>
<img id="balms-img" src=""></img>

<section id="beard-oils">
<h3 class="headers">Our Famous Beard Oil</h3>
<img id="oils-img" src=""></img>

<section id="merch-shop">
<h3 class="headers">Honest Amish Merchandice</h3>
<img id="balms-img" src=""></img>

<video id="video">
<source src="" type="video">



/* file: styles.css */
header {


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

Having some trouble here. Any advice?

All the tests pass except

  1. I need to use Flex once
  2. My Nav Bar is supposed to be at the top of the viewport.

Can’t figure out how to make this nav-bar look better.

I looksed it up online and messed around with it but I can’t get it right.

You have added no CSS at all to your project. You also have not explained what you want your project to look like vs. the state currently shown.

To pass the two tests, you will have to use CSS. I suggest going back to the section covering flexbox for the first test and review this challenge but also do research on your own to discover what it means to put an element at the top of the viewport.

Yeah sorry I had lflexbox and a million other CSS styles and just couldn’t figure out how to make the Nav Bar look good, be at the top of the viewport and sticky.

I looked online and it was quite confusing particularily with making a sticky nav bar. Some styles are applies to the Nav-bar ID and some to the LI, etc. got kind of confusing.

I checked it out as you mentioned and think I might be getting somewhere, well see what happends.


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