Product Landing Page - Build a Product Landing Page

Tell us what’s happening:

i did try everything listed here as a solution for the last two steps to finish the project, i have a flex css and media queries but the system still not recognizing it , ould somebody help me please ?

Your code so far:

<!DOCTYPE html>
<html lang="en">

  <head>
    <title>LÉGÈRE REEDS lTD.</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="styles.css"/>
<link rel='stylesheet' id='google-font-roboto-css' href='//use.typekit.net/vxy2ezk.css' type='text/css' media='all' />
<link rel='stylesheet' id='style-css' href='https://www.legere.com/wp-content/themes/legere/style.css?ver=18115c6ae5babaec0cb0df49a091b765' type='text/css' media='all' />
<link rel="stylesheet" media=" all and only screen and (min-width) and (orientation: landscape) and (orientation: portrait)" href="styles.css" />


<style id='wp-emoji-styles-inline-css' type='text/css'>

<style>

  body {
    margin: 0;
    box-sizing: border-box;
    align-items: center;
    background-color: light brown;
    display: flex;
    flex-direction: column;
  }

  #header-img {
    margin-top: 40px;
    padding-top: 40px;
    background-color: #F7D7A9;
    align: center;
    display: flex;
    flex-direction: row;
    flexbasis: auto;
    flex-wrap: nowrap;
    width: 100%;
    height: auto;

    position: relative;
    overflow: hidden;
  }

#nav-bar {
  position: fixed;
  width: 100%;
  top: 0;
  overflow: hidden;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
}

li {
  float: left;
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover:not(.active) {
  background-color: #111;
}

.active {
  background-color: #04AA6D;
}

li a, .dropbtn {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
  background-color: red;
}

li.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {background-color: #f1f1f1;
}

#p-1 {
  width: 100%;
  margin: 0px;
  padding: 20px;
  heigth: auto;
  display: block;
  box-sizing:borderbox;
  background-color: #B18768;
  position: relative;
}

#video {
  width: 100%;
  height: 100%;
  margin-bottom: -26px;
  margin-top: -60px;
}

.flex-container {
  width: 100%;
  height: auto;
  display: inline-flex;
  background-color: #482817;
}

.flex-container > div, p {
  background-color: #F7D7A9;
  width: 100%;
  margin: 10px;
  text-align: center;
  font-size: 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: left;
  flex-wrap: wrap;
  flexbasis: auto;
  justify-content: space-evenly;
}

#form {
  margin: 0px;
  padding: 20px;
  display: block;
  box-sizing: border-box;
  background-color: #F7D7A9;
  align-items: space-evenly;
}
#submit {
  color: #F7D7A9;
  background-color: #482817;
  border: 2px solid white;
  outline: 2px solid #482817;
}

.form-input {
  width: 500px;
  height: 40px;
}

::placeholder { 
  margin-right: -20px;
  margin-left: -20px;
  color: #F7D7A9;
  background-color: #482817;
  padding: 10px;
  font-weight: bold;
  text-align: left;
  outline: 10px solid black;
}

.form-label {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 2px;
  line-spacing: 10px;
 }

@media screen only and (min-width: 480px) and (orientation: portrait) { body { 
  display: flex;
  flex-direction: column;
  flexbasis: auto;
  width: calc(100% - 480px);}
}
@media screen only and (min-width: 700px) and (orientation: portrait) { 
  body {
    display: flex;
    flex-direction: column;
    flexbasis: auto;
    width: calc(100% - 700px);
  }
 }
@media screen only and (min-width: 1040px) and (orientation: portrait) { 
  body {
    display: flex;
    flex-direction: column;
    flexbasis: auto;
    width: calc(100% - 1040px);
  }
}
@media screen only and (min-width: 1200px) and (orientation: portrait) { 
  body {
    display: flex;
    flex-direction: column;
    flexbasis: auto;
    width: calc(100% - 1200px);
  }
   }

@media(-webkit-min-device-pixel-ratio:1.5),(min--moz-device-pixel-ratio:1.5),(-o-min-device-pixel-ratio:3/2),(min-resolution:1.5dppx){ 
body { 
  display: flex;
  flex-direction: column;
  flexbasis: auto;

}
}
</style>
 </head>

<!-- HERE STARTS THE BODY-->
  <body>

 <header id="header">
   <!--header image-->
<img src="https://www.legere.com/wp-content/themes/legere/images/logo.png" alt="Légère Logo" id="header-img"/>

 <!-- HERE STARTS THE NAVBAR-->
   <nav id="nav-bar" class="topnav">
   <ul class="topnav">

    <li class="dropdown">
    <a href="javascript:void(0)" class="dropbtn">PRODUCTS</a>
   <div class="dropdown-content">
    <a href="https://www.legere.com/products/saxophone-reeds/">Saxophone Reeds</a>
     <a href="https://www.legere.com/products/clarinet-reeds/">Clarinet Reeds</a>
      <a href="https://www.legere.com/products/oboe-reeds/">Oboe Reeds</a>
      <a href="https://www.legere.com/products/bassoon-reeds/">Bassoon Reeds</a>
      </div>
      </li>
<!--here starts the navbar dropdown-->
  <li class="dropdown">
    <a href="javascript:void(0)" class="dropbtn">NEED TO KNOW</a>
    <div class="dropdown-content">
      <a href="https://www.legere.com/need-to-know/strength-charts/">Strength Charts</a>
       <a
href="https://www.legere.com/need-to-know/sound-challenge/">Sound Challenge</a>
      <a
href="https://www.legere.com/need-to-know/why-they-work/">Why They Work</a>
      <a href="https://www.legere.com/need-to-know/caring-for-your-reeds/">Carrying for Your Reeds</a>
      <a href="https://www.legere.com/need-to-know/faqs/">FAQs</a>
      <a href="https://www.legere.com/beta/">Beta Testing</a>
  </div>
  </li>
  
   <li class="dropdown">
    <a href="javascript:void(0)" class="dropbtn">HOW TO BUY</a>
    <div class="dropdown-content">
      <a href="https://www.legere.com/how-to-buy/customers/">Customers</a>
      <a href="https://www.legere.com/how-to-buy/become-a-retailer/">Become a Retailer</a>
      <a href="https://www.legere.com/how-to-buy/distributors/">Find a Distributor</a>
      <a href="https://www.legere.com/exchanges/">Exchange of Strength</a>
      </div>
      </li>

      <li class="dropdown">
    <a href="javascript:void(0)" class="dropbtn">ARTISTS</a>
    <div class="dropdown-content">
      <a href="https://www.legere.com/artists/saxophone/">Saxophone</a>
      <a href="https://www.legere.com/artists/clarinet/">Clarinet</a>
      <a href="https://www.legere.com/artists/oboe/">Oboe</a>
      <a href="https://www.legere.com/artists/bassoon/">Bassoon</a>
    </div>
  </li>

  <li class="dropdown">
    <a href="javascript:void(0)" class="dropbtn">OUR STORY</a>
    <div class="dropdown-content">
      <a href="https://www.legere.com/our-story/">Our Story</a>
      <a href="https://www.legere.com/our-story/guarantee/">The Légère Guarantee</a>
      <a href="https://www.legere.com/our-story/patents/">Patents</a>
      <a href="https://www.legere.com/privacy-policy/">Privacy Policy</a>
    </div>
  </li>

<li style="float:right" class="dropdown">
    <a href="javascript:void(0)" class="dropbtn active">HOME</a>
    <div class="dropdown-content">
      <a class="nav-link" id="products" href="#products" class="nav-link">PRODUCTS</a>
      <a class="nav-link" id="need_to_know" href="#need_to_know">NEED TO KNOW</a>
      <a class="nav-link" id="how_to_buy" href="#how_to_buy">HOW TO BUY</a>
      <a class="nav-link" id="artists" href="#artists">ARTISTS</a>
      <a class="nav-link" id="our_story" href="#our_story">OUR STORY</a>
    </div>
  </li>
</ul>
  </nav>
     </header>

<!--BANNER-->
<div class="banners">
       <img src="https://www.legere.com/wp-content/uploads/Legere-Reeds-French-Cut-Clarinet-Saxophone-Reed-Banner.jpg" alt="instruments-banner" width="100%" height="auto"/>
       <p id="p-1">Légère produces premium synthetic clarinet, saxophone, bassoon and oboe reeds. They are used by players in the most prestigious orchestras and on stages around the world. Légère reeds produce a warm, vibrant sound while remaining consistent and playable for a very long time.</p>
     </div>
<br>
<br>

<iframe width="794" height="367" id="video" src="https://www.youtube.com/embed/2jzRj4Sk9jQ?list=PLhet0rWzbzYOG90Ufyn9ejktqpi1FFSvK" title="The Légère Reeds Story" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
<br>
<br>
<div class="flex-container">
  <div>
    <img src="https://www.legere.com/wp-content/uploads/Legere-Reeds-Saxophone-Reed-Tile-2021.jpg"/>
    <p>Instant response, highly durable and consistent every time. Légère saxophone reeds are available in Classic, Signature, and American Cuts and a variety of cuts and strength to satisfy all styles of playing.</p>
  </div>
  <div>
    <img src="https://www.legere.com//wp-content/uploads/Legere-Reeds-Clarinet-Reed-Tile-2021.jpg"/>
    <p>Légère clarinet reeds respond instantly providing long-lasting, orchestral-grade sound, every time. The reeds are available in Classic, Signature, and European Cuts and multiple strengths to accommodate both jazz and orchestral players.</p>
    </div>
  <div>
    <img src="https://www.legere.com/wp-content/uploads/Legere-Reeds-Oboe-Reed-Tile-2021.jpg');"/>
    <p>Légère synthetic oboe reeds are available for the European Scrape oboe in strengths Medium-Soft, Medium and Medium-Hard. They deliver consistency, durability and an instant response without any need for adjustment.</p>
    </div>  
  <div>
    <img src="https://www.legere.com/wp-content/uploads/Legere-Reeds-Bassoon-Reed-Tile-2021.jpg"/>
    <p>Légère synthetic bassoon reeds deliver consistency, durability and instant response. The result is a reed which is perfectly balanced and has the right combination of tip thickness, heart, and flexibility.</p>
  </div>
  </div

<!--CUSTOMER FORM-->
<form action="https://www.freecodecamp.com/email-submit"  id="form">
  <h2>New Customers Form :</h2>
  <label for="fname" class="form-label">Name :</label><br>
  <input type="text" id="fname" name="fname" class="form-input" placeholder="enter your full name here"></input>
  <br>
  <label for="phone" class="form-label">Phone :</label><br>
  <input type="number" id="phone" name="phone" class="form-input" placeholder="enter your phone here"></input>
  <br>
  <label for="email" class="form-label">Email :</label><br>
    <input type="email" name="email" id="email" class="form-input" placeholder="enter your email here"</input>
    <br>
    <br>
    <input type="submit" id="submit" name="submit" value="SUBMIT"></input>
</form>
  </body>
</html>

Your browser information:

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

Challenge Information:

Product Landing Page - Build a Product Landing Page

Add your CSS to the CSS file instead, it will give you better error feedback.


You have the only screen order switched in your media queries.

I wouldn’t necessarily suggest using that syntax anyway. If the browser is that old you probably do not need to support it.

thank you . i did change the whole code to a more simple version and finished the task easily. :blush:

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