Product Landing Page - Build a Product Landing Page

Your Product Landing Page should use at least one media query
Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="x-UA-compatible" content="edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Product Landing Page</title>
  </head>
  <body>
    <header id="header">
      <h1>Cat Posse</h1>
<img
src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQfm6d4Q0gAaJoSsJjCHFQDOAuV9Kmy--tXhES4tAh_O1gWXy2obFKrIJRQ74AYsIar1Dw&usqp=CAU" 
alt="" 
id="header-img"
/>

<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>
    </header>
  </body>
<section id="portfolio"></section>
<section id="projects"></section>
<section id="aboutme">
  <iframe 
  src="https://www.youtube.com/watch?v=wzj5Y4VOs0A" 
  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;
  width: 100%;
  height: 20px;
  padding: 25px 0px;
  display: flexbox;
  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 (Macintosh; Intel Mac OS X 10_15_7) 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:

You might have forgot about this part of the instructions:

Note: Be sure to add <link rel="stylesheet" href="styles.css"> in your HTML to link your stylesheet and apply your CSS.”

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