Step 7 answer unsatisfied? What am I doing wrong?


#1



https://www.codecademy.com/en/courses/learn-sass/lessons/hello-sass/exercises/sassy-types

I've copy-pasted the two snippets from the instructions into main.scss -- one in the variables area, one inside .icon -- resulting in the code below. It appears to compile and display properly, but I get the error:

Did you nest and apply the properties to .icon?

and can't proceed. What's the problem?

Edit: Same issue on question 8...

@import url(https://fonts.googleapis.com/css?family=Pacifico);
//Add variables here:
$translucent-white: rgba(255,255,255,0.3);
$icon-square-length: 300px;

h1 {
  font-family: Roboto, sans-serif;
  text-align: center;
}

.banner {
  font-family: 'Pacifico', cursive;
  height: 400px;
  background-image: url("lemonade.jpg");
  border : {
    top: 4px solid black;
    bottom: 4px solid black;
  }
  .slogan {
    position: absolute;
    border: 4px solid black;
    top: 200px;
    left: 25%;
    width: 50%;
    height: 200px;
    text-align: center;
    background-color: $translucent-white;
    span {
      font-size: 24px;
      line-height: 200px;
    }
  }
}

.container {
  text-align: center;
  font-family: 'Pacifico', cursive;
  .icon {
    display: inline-block;
    width: $icon-square-length;
    height: $icon-square-length;
    margin: 2%;
    border: 4px solid black;
    font-size: 32px;
  }
}


#2

I can't spot a problem there. Look under Get Help and pick I want to restart this exercise -- see if that gets it to sort itself out.


#3

Tried that before posting. Actually tried a few things:
- restart exercise from the help menu
- close browser, revisit page
- insert instructed text at various different locations of the relevant class

None of these allowed me to produce code that it would accept. I was able to proceed by using Get Code in the Having Trouble box that pops up, but had the same issue again on Step 8.

As long as I know my code is actually valid, I'll just work around it.


#4

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