Learn Sass 5. Nesting Properties


#1

Hello, I have been having some with figuring out this code.
Here is the problem
In main.scss, nest the following properties inside of .banner:

border : {
top: 4px solid black;
bottom: 4px solid black;
}
Click "Run" to see your changes in the browser and view the output in main.css.

I know I am supposed to put the properties inside of .banner
This is what I put in the main.scss
.banner {
.slogan {
position: absolute;
border:
top: 4px solid black;
bottom: 4px solid black;
top: 200px;
left: 25%;
width: 50%;
height: 200px;
text-align: center;
}
But it says it's wrong. Please help ASAP!


#2

You opened up with two curly braces, right?

And for every opening, you need a closing; however, you only have one closing.

Also, you forgot the curly brace when defining the border.


#3

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