Stuck on lesson 4 .icon part nesting


#1

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

STUCK ON NESTING. icon part !
Every time i run it says,

'Did you nest and apply the properties to .icon inside of .container?

nest the following selector inside of .container:

.icon {
display: inline-block;
margin: 2%;
border: 4px solid black;
font-size: 32px;
}
Click "Run" to see your changes in the browser and inspect output in main.css.


@import url(https://fonts.googleapis.com/css?family=Pacifico);
//Add variables here:

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

.banner {

  font-family: 'Pacifico', cursive;
  height: 400px;
  background-image: url("lemonade.jpg");
  .slogan {
    position: absolute;
    border: 4px solid black;
    top: 200px;
    left: 25%;
    width:50%;
    height:200px;
    text-align: center;
span {
      font-size:24px;
      line-height:200px;
  }
.container {
  text-align: center;
  font-family: 'Pacifico', cursive;
  .icon {
    display: inline-block;
    margin: 2%;
    border: 4px solid black;
    font-size: 32px;
  }


#2

Be sure to close the .container declaration block.

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

#3

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