Technical Documentation Page - Build a Technical Documentation Page

Tell us what’s happening:

please ive done everything but media query test seems not the check no matter what i do

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css"/>
    <title>Technical Documentation Page</title>
  </head>
/* file: styles.css */
*{
    box-sizing: border-box;
}

body{
    font-family: 'open sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    margin: 0;
}
#main-doc{
    background-color: rgb(255, 255, 255);
    margin-top: -13px;
    z-index: 1;
}
#navbar header{
    text-align: center;
    display: block;
    margin: 10px;
    font-size: 1.8em;
}
#navbar ul{
    list-style: none;
    padding: 0;
    border-top: 1px solid rgb(112, 105, 105);
    overflow-y: auto;
}
#navbar ul li{
    border: 1px solid rgb(138, 130, 130);
    padding: 10px 30px;
    
}
#navbar ul li a{
    text-decoration: none;
    color: black;
}
.main-section{
    padding-left: 30px;
    padding-right: 30px;
    margin-top: 20px
}
.main-section header{
    text-align: left;
    text-indent: -20px;
    color: black;
    font-size: 1.8em;
}
code, #code{
    display: block;
    background-color: rgb(178, 249, 249);
    padding: 10px;
    font-size: 1.1em;
    border-radius: 5px;
}
#defect{
    margin-left: 20px;
}

@media only screen and (max-width: 815px){
    #navbar ul{ 
        height: 207px;
        border-bottom: 1px solid;;
    }
}
#navbar{
    display: block;
}
@media only screen and (min-width: 815px){
    body{
        display: flex;
        flex-direction: row;
    }
    #navbar{

        position: fixed;
        width: 300px;
        border-right: 1px solid grey;
    }
    #navbar ul{
        width: auto;
        height: auto;
    }
    #main-doc{
        margin-left: 300px;
    }
}

Your browser information:

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

Challenge Information:

Technical Documentation Page - Build a Technical Documentation Page

Please post your HTML.

As a reminder:

Note: Be sure to add <link rel="stylesheet" href="styles.css"> in your HTML to link your stylesheet and apply your CSS

There is an extra semicolon on border-bottom here:

@media only screen and (max-width: 815px){
#navbar ul{
height: 207px;
border-bottom: 1px solid;;

There is also a missing semicolon in you .main-section, but I’m not sure if this would affect the tests.

.main-section{
    padding-left: 30px;
    padding-right: 30px;
    margin-top: 20px

I hope this helped, if not sorry.

didnt help but thanks

i added it to my post

Please post all of it.

Right here your 2nd #navbar is outside of the @media closing curly bracket.

@media only screen and (max-width: 815px){
    #navbar ul{ 
        height: 207px;
        border-bottom: 1px solid;;
    }
}
#navbar{
    display: block;
}

im not able to edit the post again

still not working…sorry

please i have reposted with everything…please check

Your HTML is still missing. Where is the body and its content?