6. Variables

As far as I can tell I’ve created a valid answer, following the instructions, to the Variables exercise but I keep getting the error

Did you add a background-color property of .slogan class in main.scss?

The Get Code button does not work - the connection times out.

This is driving me crazy - as far as I can tell the code is right. Any ideas?

My code:

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

$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: 25%;
  	width: 50%;
  	height: 200px;
        background-color: $translucent-white;
    span {
  		position: absolute;
  		text-align: center;
  		line-height: 200px;
		}
	}
}

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

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