Responsive Web Design Projects - Build a Product Landing Page Problem. Can you help me?

last 3 steps not checkmarking off

  • Your #nav-bar should always be at the top of the viewport.

  • Failed:Your Product Landing Page should use at least one media query.

  • Failed:Your Product Landing Page should use CSS Flexbox at least once.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <nav id="nav-bar">
<a href="#portfolio" class="nav-link">Portfolio</a>
<a href="#projects" class="nav-link">Projects</a>
<a href="#aboutme" class="nav-link">About Me</a>
 
</nav>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<title>Product Landing Page</title>
</head>
<header id="header">
  <h1>Cats With Attitude</h1>
  <img src="https://ih1.redbubble.net/image.1950935480.4900/st,small,507x507-pad,600x600,f8f8f8.jpg" alt="" id="header-img"/>
 

</header>
<body>
<section id="portfolio"></section>
<section id="projects"></section>
<section id="aboutme">
  <iframe 
    src="https://www.youtube.com/watch?v=VkIoFgFhTlo"     
    id="video" 
    frameborder="0">
 
  </iframe>
</section>
 
</body>
<footer>
  <form 
  action="https://www.freecodecamp.com/email-submit" id="form">
  <input
   type="text"
   id="text"
   name="text"
   placeholder="Question?"
   required
   />
   <br>
   <input 
   type="email"
   id="email"
   name="email"
   placeholder="What is your email"
   required
   />
   <input 
   type="submit" 
   id="submit"
   value="Ask now?"
   class="submit"
   />
  </form>
</footer>
</html>



/* file: styles.css */
header {
  position: fixed;
  top: 0px;
  left:0;
  width: 100%;
  height: 20px;
  padding: 25px 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black;
  opacity: 0.8;
@Media (max-width: 500px) {
  body {
    flex-wrap: wrap;
  }
  

Your browser information:

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

Challenge: Responsive Web Design Projects - Build a Product Landing Page

Link to the challenge:

couple of things I notice right away.

  • you haven’t linked the stylesheet styles.css
  • your css has at least 2 mistakes which include not closing the curly braces around each rule.
    (count the { and see if you have matching } for each one)

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