Portfolio 3. The navbar should always be at the top of the viewport

Here is code , I just cant get it to pass

#nav-list {
  width: 95%;
  margin: 0x 0px 0px 0px;
  padding: 6px 6px 4px 6px;
  height: 48px;
  line-height: 200%;
  border-radius: 0px;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  box-shadow: 0px 0px 0px #666666;
  -webkit-box-shadow: 0px 0px 0px #666666;
  -moz-box-shadow: 0px 0px 0px #666666;
  background: #000000;
  border: solid 0px #000000;
  position:fixed;
  z-index:999;
  margin:17px;
  border-radius: 25px;
  top:0px;
  
}
#nav-list li {
  margin: -15px 0px 6px 0px;
  padding: 0px 6px 0px 6px;
  float: left;
  position: relative;
  list-style: none;
   color:white;
  
}
#nav-list a {
  font-weight: bolder;
  font-family: arial;
  font-style: normal;
  font-size: 12px;
  color: #EBE9E9;
  text-decoration: none;
  display: block;
  padding: 6px 20px 6px 20px;
  margin: 0;
  margin-bottom: 6px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  text-shadow: 2px 2px 3px #000000;

}
#nav-list li ul li a {
  margin: 0;
}
#nav-list .active a, #menu-bar li:hover > a {
  background: #0399D4;
  background: linear-gradient(top,  #EBEBEB,  #000000);
  background: -ms-linear-gradient(top,  #EBEBEB,  #000000);
  background: -webkit-gradient(linear, left top, left bottom, from(#EBEBEB), to(#000000));
  background: -moz-linear-gradient(top,  #EBEBEB,  #000000);
  color: #FFFFFF;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  text-shadow: 2px 2px 3px #FFFFFF;
}
#nav-list ul li:hover a, #menu-bar li:hover li a {
  background: none;
  border: none;
  color: #666;
  -box-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
}
#nav-list ul a:hover {
  background: #0399D4 !important;
  background: linear-gradient(top,  #04ACEC,  #0186BA) !important;
  background: -ms-linear-gradient(top,  #04ACEC,  #0186BA) !important;
  background: -webkit-gradient(linear, left top, left bottom, from(#04ACEC), to(#0186BA)) !important;
  background: -moz-linear-gradient(top,  #04ACEC,  #0186BA) !important;
  color: #FFFFFF !important;
  border-radius: 0;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  text-shadow: 2px 2px 3px #FFFFFF;
}
#nav-list li:hover > ul {
  display: block;
}
#nav-list ul {
  background: #DDDDDD;
  background: linear-gradient(top,  #FFFFFF,  #CFCFCF);
  background: -ms-linear-gradient(top,  #FFFFFF,  #CFCFCF);
  background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#CFCFCF));
  background: -moz-linear-gradient(top,  #FFFFFF,  #CFCFCF);
  display: none;
  margin: 0;
  padding: 0;
  width: 185px;
  position: absolute;
  top: 30px;
  left: 0;
  border: solid 1px #B4B4B4;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-box-shadow: 2px 2px 3px #222222;
  -moz-box-shadow: 2px 2px 3px #222222;
  box-shadow: 2px 2px 3px #222222;
}
#nav-list ul li {
  float: none;
  margin: 0;
  padding: 0;
}
#nav-list ul a {
  padding:10px 0px 10px 15px;
  color:#424242 !important;
  font-size:12px;
  font-style:normal;
  font-family:arial;
  font-weight: normal;
  text-shadow: 2px 2px 3px #FFFFFF;
}
#nav-list ul li:first-child > a {
  border-top-left-radius: 10px;
  -webkit-border-top-left-radius: 10px;
  -moz-border-radius-topleft: 10px;
  border-top-right-radius: 10px;
  -webkit-border-top-right-radius: 10px;
  -moz-border-radius-topright: 10px;
}
#nav-list ul li:last-child > a {
  border-bottom-left-radius: 10px;
  -webkit-border-bottom-left-radius: 10px;
  -moz-border-radius-bottomleft: 10px;
  border-bottom-right-radius: 10px;
  -webkit-border-bottom-right-radius: 10px;
  -moz-border-radius-bottomright: 10px;
}
#nav-list:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
#nav-list {
  display: inline-block;
 
}
  html[xmlns] #nav-list {
  display: block;
}
* html #nav-list {
  height: 1%;

I’ve edited your post 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.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

this is not your whole code

but it is easier to debug if you post a link to your project, like on codepen or repl.it or something like that

Im sorry can you show me an example of what you mean by a backtick is this it ? {
Im a rookie , sorry for the noob mistake . I think I under stand I can post the whole code

{{{
.parent {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: repeat(5, 1fr);
grid-column-gap: 0px;
grid-row-gap: 0px;
}

.div1 { grid-area: 1 / 1 / 2 / 6; }
.div2 { grid-area: 2 / 1 / 5 / 6; }
.div3 { grid-area: 5 / 1 / 6 / 6; }

html {
background: url(https://images.pexels.com/photos/34153/pexels-photo.jpg?auto=compress&cs=tinysrgb&h=750&w=1260) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

.div1 {
background-color: black;
color: white;
opacity: .85;
Text-align: center;
font-size: 50px;
font-family: impact;
border-bottom: 3px solid white;
margin: 20px;
border-radius: 25px;

}

.div1

.div1, p {
margin-top: -70px;
}

.div2 {
background-color: black;
opacity: .85;
border-radius: 15px 50px;
margin-top: 35px;
margin:25px;

}

.div3 {

background-color: black;
color: white;
text-align: center;
height: 400px;
opacity: .85;
border-radius: 25px;
border-top: 3px solid white;
}
.div3, a {
margin-top: 30px;
margin: 20px;
color: white

}

.div3, p {
margin-top: 45px;
}

#header {
position: fixed;
top: 0;
}

@media screen and (max-width: 600px) {
.div1 {
font-size: 2rem;
}
}

/nav/
#nav-list {
width: 95%;
margin: 0x 0px 0px 0px;
padding: 6px 6px 4px 6px;
height: 48px;
line-height: 200%;
border-radius: 0px;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
box-shadow: 0px 0px 0px #666666;
-webkit-box-shadow: 0px 0px 0px #666666;
-moz-box-shadow: 0px 0px 0px #666666;
background: #000000;
border: solid 0px #000000;
position:fixed;
z-index:999;
margin:17px;
border-radius: 25px;
top:0px;

}
#nav-list li {
margin: 1px 0px 6px 0px;
padding: 0px 6px 0px 6px;
float: left;
position: relative;
list-style: none;
color:white;

}
#nav-list a {
font-weight: bolder;
font-family: arial;
font-style: normal;
font-size: 12px;
color: #EBE9E9;
text-decoration: none;
display: block;
padding: 6px 20px 6px 20px;
margin: 0;
margin-bottom: 6px;
border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
text-shadow: 2px 2px 3px #000000;

}
#nav-list li ul li a {
margin: 0;
}
#nav-list .active a, #menu-bar li:hover > a {
background: #0399D4;
background: linear-gradient(top, #EBEBEB, #000000);
background: -ms-linear-gradient(top, #EBEBEB, #000000);
background: -webkit-gradient(linear, left top, left bottom, from(#EBEBEB), to(#000000));
background: -moz-linear-gradient(top, #EBEBEB, #000000);
color: #FFFFFF;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
text-shadow: 2px 2px 3px #FFFFFF;
}
#nav-list ul li:hover a, #menu-bar li:hover li a {
background: none;
border: none;
color: #666;
-box-shadow: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
}
#nav-list ul a:hover {
background: #0399D4 !important;
background: linear-gradient(top, #04ACEC, #0186BA) !important;
background: -ms-linear-gradient(top, #04ACEC, #0186BA) !important;
background: -webkit-gradient(linear, left top, left bottom, from(#04ACEC), to(#0186BA)) !important;
background: -moz-linear-gradient(top, #04ACEC, #0186BA) !important;
color: #FFFFFF !important;
border-radius: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
text-shadow: 2px 2px 3px #FFFFFF;
}
#nav-list li:hover > ul {
display: block;
}
#nav-list ul {
background: #DDDDDD;
background: linear-gradient(top, #FFFFFF, #CFCFCF);
background: -ms-linear-gradient(top, #FFFFFF, #CFCFCF);
background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#CFCFCF));
background: -moz-linear-gradient(top, #FFFFFF, #CFCFCF);
display: none;
margin: 0;
padding: 0;
width: 185px;
position: absolute;
top: 30px;
left: 0;
border: solid 1px #B4B4B4;
border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
-webkit-box-shadow: 2px 2px 3px #222222;
-moz-box-shadow: 2px 2px 3px #222222;
box-shadow: 2px 2px 3px #222222;
}
#nav-list ul li {
float: none;
margin: 0;
padding: 0;
}
#nav-list ul a {
padding:10px 0px 10px 15px;
color:#424242 !important;
font-size:12px;
font-style:normal;
font-family:arial;
font-weight: normal;
text-shadow: 2px 2px 3px #FFFFFF;
}
#nav-list ul li:first-child > a {
border-top-left-radius: 10px;
-webkit-border-top-left-radius: 10px;
-moz-border-radius-topleft: 10px;
border-top-right-radius: 10px;
-webkit-border-top-right-radius: 10px;
-moz-border-radius-topright: 10px;
}
#nav-list ul li:last-child > a {
border-bottom-left-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-moz-border-radius-bottomleft: 10px;
border-bottom-right-radius: 10px;
-webkit-border-bottom-right-radius: 10px;
-moz-border-radius-bottomright: 10px;
}
#nav-list:after {
content: “.”;
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
#nav-list {
display: inline-block;

}
html[xmlns] #nav-list {
display: block;
}

  • html #nav-list {
    height: 1%;
    }}}

Also I’m having trouble with this ( 2. The height of the welcome section should be equal to the height of the viewport.)