My code is the same as the code that codecademy answer gave me, but codecademy gave me a NO

Hi, I am on the course Build a Website with HTML, CSS, and Github Pages.

To be precise: Build a Website with HTML, CSS, and Github Pages: CSS Documentation and Debugging: Documentation and Research: Documentation, and I think I found a bug.

Not only that, I think ALL the lesson have this bug.

Here is my problem:
I typed the same code as the code that codecademy gave me after I clicked Get Code Solution, but before I clicked Get Code Solution, codecademy gave me a NO.

There is NO difference between my code and the solution code. Here is the whole code I typed:

nav {
  padding: 25px;
  font-family: 'Roboto', sans-serif;
  background-color: #F25F5C;
}

h1 {
  float: left;
  margin-top: 5px;
  color: white;
  font-size: 36px;
}

ul {
  float: right;
}

li {
  display: inline-block;
  margin-right: 25px;
  text-align: center;
  background-color: #28587B;  
}

a {
  display: inline-block;
  width: 150px;
  padding: 10px 0;
  text-decoration: none;
  font-size: 24px;
  color: white;
}

.clearfix:after {
   content: " ";
   visibility: hidden;
   display: block;
   height: 0;
   clear: both;
}

@media only screen and (max-width: 800px) {
  h1 {
    display: none;
  }
  
  li {
    margin-right: 10px;
  }

  a {
    width: 100px;
    padding: 5px 0;
    font-size: 16px;
  }
}

So what is wrong here?

  • There is an minor error I didn’t notice in my code.
  • Codecademy has a bug.
  • I have other problems. (If you choose this one, please write the exact problem in the reply.)

0 voters

1 Like

It’s a completely different course, but I also have a problem of failing to pass Step 2 while entering the correct code.