Says it needs a media query. put one in and says error

Tell us what’s happening:
Describe your issue in detail here.
tells me i should have atleast one media query but everytime i add one it tells me the same thing

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html>
<head>    <link rel="stylesheet" href="styles.css"></head>
 <nav id="navbar">
   <ul>
     <li><a href="#welcome-section">Welcome</a></li>
 <li><a href="#projects">Projects</a></li> 

       </ul>
       
   </nav>
 
 <div id="welcome-section">
  <h1>welcome section</h1>
  </div>
  <link rel="stylesheet" href="styles.css">

<project id="projects">
  <div class="project-tile"><a href="https://www.freecodecamp.org/learn/2022/responsive-web-design/build-a-technical-documentation-page-project/build-a-technical-documentation-page">Build a documentaion page</a></li></div>
<footer><a id="profile-link" target="_blank" href="https://www.freecodecamp.org/learn">profile page</a></footer>

</project>
<body></body>
</html>
/* file: styles.css */

#navbar {
position: fixed;
}  
#welcome-section {
height: 100vh;  
}

@media (max-width: 720px) {
body {
  background-color: pink;
} 
}


  **Your browser information:**

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

Challenge: Build a Personal Portfolio Webpage

Link to the challenge:

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