SASS 6: Variables in SASS


<Below this line, add a link to the EXACT exercise that you are stuck at.>"

<In what way does your code behave incorrectly? Include ALL error messages.>

I keep getting the following error message : Did you add a background-color property of .slogan class in main.scss?

It seems like it should be right from what I was able to find here in the help section but clearly it’s not because it keeps erroring out on me.


@import url(;
//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 {
background color: $translucent-white;
position: absolute;
border: 4px solid black;
top: 200px;
left: 25%;
width: 50%;
height: 200px;
text-align: center;
span {
font-size: 24px;
line-height: 200px;

border : {
top: 4px solid black;
bottom: 4px solid black;

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

<do not remove the three backticks above>

Hey @overlookshiningyahoo,

You have .slogan inside .banner. It belongs outside. This should fix it.

@825orion according to lesson 4, .slogan is supposed to be nested inside .banner, so I don’t get what you mean when you say, “It belongs outside.” Do I have to make a new, separate .slogan selector?

Hey @jbarks2

Sorry for the late response.

That’s correct. When I say “it belongs outside” I mean you should move the .slogan selector outside the .banner selector. Sorry if that wasn’t clear.

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