Technical Documentation Page - Build a Technical Documentation Page Please help me me, I stuck at the media query, where should I write the query? please help!

Tell us what’s happening:
Describe your issue in detail here.

   **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html>
 <head>
   <title></title>
   <link rel="stylesheet" href="styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

   </head>
   <body>
     <style>
@media (max-width: 992px) {
 .navbar {
   float: left;
 }
}
@media (max-width: 600px) {
 #nav {
   float: left;
 }
}
ul {
 list-style-type: none;
 margin: 0;
 padding: 0;
}
</style>
     <nav id="navbar">
    <header>header1</header>
     <ul>
<li><a class="nav-link" href="#header1">header1</a></li>
<li><a class="nav-link" href="#header2">header2</a></li>
<li><a class="nav-link" href="#header3">header3</a></li>
<li><a class="nav-link" href="#header4">header4</a></li>
<li><a class="nav-link" href="#header5">header5</a></li>
</ul>
    </nav>
     <main id="main-doc">
       <section class="main-section" id="header1">
         <header id="header1">header1</header>    
         </section>

       <section class="main-section" id="header2">
          <header id="header2">header2</header>        
         <p></p>
           <p></p>
             <p></p>
               <p></p>
                 <p></p>
                   <p></p>
                     <p></p>
                       <p></p>
                         <p></p>
                           <p></p>
       </section>
       <section class="main-section" id="header3">
         <header id="header3">header3</header>
           <code></code>
            <code></code>
             <code></code>
              <code></code>
               <code></code>
       </section>
       <section class="main-section" id="header4">
           <header id="header4">header4</header>
       <ul>
         <li></li>
           <li></li>
             <li></li>
               <li></li>
                 <li></li>
         </ul>
       </section>
        <section class="main-section" id="header5">
         <header id="header5">header5</header>    
         </section>
           
       </main>
       
     </body>
 </html>
/* file: styles.css */

   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0

Challenge: Technical Documentation Page - Build a Technical Documentation Page

Link to the challenge:

I believe the tests want the media query to be in the “styles.css” editor, not in the HTML inside the style tags.

1 Like