Your First Stylesheet LESSON 7/9


#1

Instructions
1.
In main.scss, make a variable of type number at the top of your file:

$icon-square-length: 300px;
Add the following inside the class selector .icon:

width: $icon-square-length;
height: $icon-square-length;
Click "Run" to see your changes in the browser and inspect output in main.css.

and i type the next code and is still not working:

@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;
background-color: $translucent-white;
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;
width: $icon-square-length;
height: $icon-square-length;
}
}

the error is: Did you nest and apply the properties to .icon?


#2

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