Technical Documentation Page - Can't get tester to accept media queries

Hi there, my code for this project passes every test on the list and I’m happy with how it looks, but I can’t get the tester to accept my @media queries as I’ve built them.

html,
body {
  min-width: 290px;
  color: #4d4e53;
  background-color: #dce1e8;
  font-family: 'Open Sans', Arial, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

@media only screen and (max-width: 815px) {
    /*for mobile*/
  #navbar ul {
      border: 1px solid;
      height: 207px;
  }

  #navbar {
    background-color: #dce1e8;
    position: absolute;
    top: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    max-height: 275px;
    border: none;
    z-index: 1;
    border-bottom: 2px solid;
  }

  #main-doc {
    position: relative;
    margin-left: 0px;
    margin-top: 270px;
  }
}

@media only screen and (max-width: 400px) {
  #main-doc {
    margin-left: -10px;
  }

  code {
    margin-left: -20px;
    width: 100%;
    padding: 15px;
    padding-left: 10px;
    padding-right: 45px;
    min-width: 233px;
  }
}

#navbar {
  position: fixed;
  min-width: 290px;
  top: 0px;
  left: 0px;
  width: 300px;
  height: 100%;
  border-right: solid;
  border-color: #907e96;
}

header {
  color: #664b70;
  margin: 0 0 0 310px;
  text-align: left;
}

nav header {
  color: #664b70;
  margin: 20px 0 0 10px;
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
}

#main-doc header {
  font-weight: normal;
  font-size: 1.5em;
  text-align: left;
  margin: 0px;
}

#navbar li {
  color: #664b70;
  border-top: 2px solid #907e96;
  list-style: none;
  position: relative;
  width: 100%;
}

#navbar a {
  display: block;
  padding: 10px 30px;
  color: #664b70;
}

#main-doc {
  position: absolute;
  margin-left: 310px;
  padding: 20px;
  margin-bottom: 110px;
}

#navbar ul {
  height: 88%;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

section article {
  color: #664b70;
  margin: 15px;
  font-size: 0.97em;
  line-height: 1.6em;
}

section li {
  margin: 15px 0 0  20px
}

li.meds {
  list-style: none;
  margin-bottom: 10px;
}
code {
  display: block;
  text-align: left;
  white-space: pre-line;
  position: relative;
  word-break: normal;
  word-wrap: normal;
  line-height: 2;
  background-color: #d3c1d9;
  padding: 15px;
  margin: 10px;
  border-radius: 5px;
}

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/112.0.0.0 Safari/537.36

Challenge: Technical Documentation Page - Build a Technical Documentation Page

Link to the challenge:

Never mind, I figured it out. Idk how but a single missing ‘;’ in the section li selector broke its brain I guess…

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