Technical Documentation Page - Build a Technical Documentation Page

I can’t figure out how to get a check for the media query

#main-doc, #title, #navbar { text-align: center; padding: 32px; background: #E0DDDD; } } #navbar { color: yellow; font-family: goudy stout; } #Animals { color: blue; font-family: elephant; } #Fruit { color: green; font-family: castellar; } #Science { color: purple; font-family: stencil; } #Hair_Care_Products { color: red; font-family: snap ITC; } #Summer { color: blue; font-family: lucida handwriting; } #title { color: yellow; font-family: goudy stout; } body { background-color: black; } @media screen and (max-width: 1500px) { body { background-color: blue; } }

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge: Technical Documentation Page - Build a Technical Documentation Page

Link to the challenge:

Make sure you have linked the stylesheet.

I did link it but it’s still not working. Unless I did it wrong. This is my code:

<head>
    <title>Technical Documentation Page</title>
    <link rel="stylesheet" href="styles.css">
    <meta charset="utf-8"></meta>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
  </head>

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Pls note that meta is self closing.

You should share all the html and all the css. That way we can copy it and try it on our end.

<!Doctype html>
<html>
  <head>
    <title>Technical Documentation Page</title>
    <link rel="stylesheet" href="styles.css">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
  </head>
  <body>
    <p id="title">Information Page</p>
    <main id="main-doc">
      <section class="main-section" id="Animals">
        <header id="Animals">Animals</header>
          <p>There a lots of different types of animals.</p>
          <p>There are water and land animals.</p>
          <code class="list">Here are a few:</code>
          <li>Lion</li>
          <li>Whale</li>
          <li>Dog</li>
          <p></p>
      </section>
      <section class="main-section" id="Fruit">
        <header id="Fruit">Fruit</header>
          <p>There are a lot of yummy fruit.</p>
          <p>Fruit are all closer in size then animals.</p>
          <code class="list">Here are examples of fruit:</code>
          <li>Peach</li>
          <li>Plum</li>
          <li>Apple</li>
          <p></p>
      </section>
      <section class="main-section" id="Science">
        <header id="Science">Science</header>
          <p>There are different kinds of science.</p>
          <p>They can be different or similar.</p>
          <code class="list">Here are examples:</code>
          <li>Environmental Science</li>
          <li>Chemistry</li>
          <li>Earth Science</li>
          <p></p>
      </section>
      <section class="main-section" id="Hair_Care_Products">
        <header id="Hair care products">Hair Care Products</header>
          <p>There are different kinds of hair care products.</p>
          <p>They each do something else.</p>
          <code class="list">Here are some examples of hair care products:</code>
          <li>Mouss'e</li>
          <li>Oil</li>
          <li>Hair Mask</li>
          <p></p>
      </section>
      <section class="main-section" id="Summer">
          <header id="summer">Summer</header>
          <p>Summer is the best.</p>
          <p>There are lots of things to do in summer.</p>
          <code class="list">Here are some summer fun ideas:</code>
          <li>Getting Icecream</li> 
          <li>Going Swimmming</li>
          <li>Going to sleepaway Camp</li>
          <p></p>
      </section>
    </main>
  </body>
  <nav id="navbar">
    <header>Your Information</header>
    <br>
    <a class="nav-link" href="#Animals">Animals</a> 
    <br> 
    <a class="nav-link" href="#Fruit">Fruit</a>
    <br>
    <a class="nav-link" href="#Hair_Care_Products">Hair Care Products</a>
    <br>
    <a class="nav-link" href="#Science">Science</a>
    <br>
    <a class="nav-link" href="#Summer">Summer</a>
  </nav>
  <style>
   #main-doc, #title, #navbar {
      text-align: center;
      padding: 32px;
      background: #E0DDDD;
    }
      }
      #navbar {
        color: yellow;
        font-family: goudy stout;
      }
      #Animals {
        color: blue;
        font-family: elephant; 
      }
      #Fruit {
        color: green;
        font-family: castellar;
      }
      #Science {
        color: purple;
        font-family: stencil; 
      }
      #Hair_Care_Products {
        color: red;
        font-family: snap ITC;
      }
      #Summer {
        color: blue;
        font-family: lucida handwriting;
      }
      #title {
        color: yellow;
        font-family: goudy stout;
      }
       body {
        background-color: black;
      }
      @media screen and (max-width: 1500px) {
         body {
           background-color: blue;
         }
         #Science {
           color: blue;
         }
      }
  </style>
</html>

Your code is not showing up in the forum because you have not enclosed it into a code block. Please review the instructions

Did that help?
I tried posting it again

1 Like

Try moving all the css into the styles.css file

It worked, thank you so much!

1 Like

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