<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
Hello.
I’m stuck on lesson six, where my variable won’t work. It comes up with the error message: Did you add a background-color property of .slogan class in main.scss? This is the link to the exercise I’m stuck on: https://www.codecademy.com/en/courses/learn-sass/lessons/hello-sass/exercises/variables
PLEASE HELP!
This is my code:
$translucent-white: rgba(255,255,255,0.3);
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: 35%;
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;
margin: 2%;
border: 4px solid black;
font-size: 32px;
}
}