Technical Documentation Page - Build a Technical Documentation Page

Tell us what’s happening:

I already added a media query but I can’t pass this step…

Your code so far

<!-- file: index.html -->
<main id="main-doc">
  <link rel="stylesheet" href=".stylesheet">
  <nav id="navbar">
    <header>Topic</header>
    <a class="nav-link" href="#text_1">Text 1</a>
    <a class="nav-link" href="#text_2">Text 2</a>
    <a class="nav-link" href="#text_3">Text 3</a>
    <a class="nav-link" href="#text_4">Text 4</a>
    <a class="nav-link" href="#text_5">Text 5</a>
  </nav>
  <section class="main-section" id="text_1">
<header>Text 1</header>
<p>Paragraph 1</p>
<p>Paragraph 2</p>
<code></code>
<ul>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  </ul>
  </section>

  <section class="main-section" id="text_2">
<header>Text 2 </header>
<p>Paragraph 3</p>
<p>Paragraph 4</p>
<code></code>
  </section>

  <section class="main-section" id="text_3">
<header>Text 3</header>
<p>Paragraph 5</p>
<p>Paragraph 6</p>
<code></code>
  </section>

  <section class="main-section" id="text_4">
<header>Text 4</header>
<p>Paragraph 7</p>
<p>Paragraph 8</p>
<code></code>
  </section>

  <section class="main-section" id="text_5">
<header>Text 5</header>
<p>Paragraph 9</p>
<p>Paragraph 10</p>
<code></code>
  </section>
</main>
/* file: styles.css */
#narbar{position:fixed;
left:0;
padding: 20px;
}
#navbar header{font size:1.618em;
margin-bottom:7;
}
#navbar a{text-decoration:none;
display:block;
margin-bottom:12px;
}
#main-doc{margin-left:200px;
}

@media (max-height: 600px) {
  .main-section {
    font-size: .7em;
  }
 

Your browser information:

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

Challenge Information:

Technical Documentation Page - Build a Technical Documentation Page

Hi there and welcome to our community!

You have a typo here, which is causing one of the tests to fail:

The media query test passes for me with your code.

are you sure you linked the stylesheet correctly?