Product Landing Page - Build a Product Landing Page

hello,i just cant seem to figure out the css styles part

  **Your code so far**
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="styles.css">
<header id="header">
  <meta charset="UTF-8"></meta>
  <link rel="stylesheet" href="styles.css">
  <img id="header-img" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/product-landing-page-logo.png">
  <section class="main-section" id="features"></section>
    <section class="main-section" id="how_it_works"></section>
      <section class="main-section" id="pricing"></section>
  <nav id="nav-bar">
    <a class="nav-link" href="#features"> </a>
    <a class="nav-link" href="#how_it_works"></a>
    <a class="nav-link" href="#pricing"></a>
  </nav>
</header>
<body>
<iframe id="video" src="https://youtu.be/y8Yv4pnO7qc"></iframe>

<form id="form" action="https://www.freecodecamp.com/email-submit" >
<input id="email"placeholder="enter your email address" type="email" name="email"></input>
<input id="submit" type="submit"></input></form>
</div>


</body> 
</html>
/* file: styles.css */
@media (max-width: 600px){
.header{
  background-color:grey;
}
}
body{
display:flex;
flex-direction:column;
flex-wrap:wrap;
justify-content: center;
align-items:center;
}
#header-img{
display:flex;
flex-direction:column;
flex-wrap:wrap;
justify-content: center;
align-items:center;

}
  **Your browser information:**

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

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

Do you mean this part?
Note: Be sure to add <link rel="stylesheet" href="styles.css"> in your HTML to link your stylesheet and apply your CSS

It should be nested in a <head></head> element I believe

no the media and the flexbox i have them down but the code snt going forward

maybe because the link statement is not inside the head element?
Try fixing that first.

1 Like