Technical Documentation Page - Build a Technical Documentation Page how to add media 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">
 <style>
    @media {
 .header {
   font-color: pink;
 }
}

     </style>
   </head>
   <body>
     <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:

First, I’m pretty sure that the tests require you to put the media query in the “styles.css” editor instead of in the HTML using style tags.

Second, your media query needs a condition so it knows when to take affect.

@media (condition) {
  /* your CSS goes here */
}

MDN: Using media queries

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