Product Landing Page - Build a Product Landing Page

Tell us what’s happening:
Not sure why my media query isn’t being recognized when i run the tests on this code…

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" href="styles.css"/>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <header id="header">
      <img width="70%" id="header-img" alt="fender logo" src="">
      <nav id="nav-bar">
        <li><a class="nav-link" href="#guitars">Guitars</a></li>
        <li><a class="nav-link" href="#basses">Basses</a></li>
        <li><a class="nav-link" href="#amps">Amps</a></li>
    <section id="company-description">
      <p>The Fender Musical Instruments Corporation (FMIC, or simply Fender) is an American manufacturer of instruments and amplifiers. Fender produces acoustic guitars, bass amplifiers and public address equipment, however it is best known for its solid-body electric guitars and bass guitars, particularly the Stratocaster, Telecaster, Jaguar, Jazzmaster, Precision Bass, and the Jazz Bass. The company was founded in Fullerton, California by Clarence Leonidas "Leo" Fender in 1946. Its headquarters are in Los Angeles, California.</p>
    <section id="video-section">
      <iframe id="video" width="560" height="315" src="" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
    <form id="form" action="">
      <label for="email">Fender Newsletter: </label>
      <input id="email" name="email" type="email" placeholder="Email address">
      <input id="submit" type="submit" formaction="">Sign Up</input></input>
    <section id="guitars">
    <section id="basses">
        <li>Precision Bass</li>
        <li>Jazz Bass</li>
    <section id="amps">
        <li>Twin Reverb</li>
/* file: styles.css */
#header {
  display: flex;
  flex-direction: row;

ul {
  list-style-type: none;

#nav-bar {
    position: fixed;
    top: 0px;
    width: 100%;

@media (max-width: 1000px) {
  #company-description {
  background-color: black;

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

You’ve got some sort of weird invisible character directly after the closing curly brace on this ruleset. Once I delete it then the media query passes.

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