Learn Intermediate CSS by Building a Picasso Painting - Step 10

Tell us what’s happening:
I dont know how to set the z-index property to -1
I think this is ok but theres an error.
Could someone explain to me what am I doing wrong?

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Picasso Painting</title>
  <link rel="stylesheet" href="./styles.css" />
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
</head>
<body>
  <div id="back-wall"></div>
</body>
</html>
/* file: styles.css */
body {
background-color: rgb(184, 132, 46);
}

#back-wall {
background-color: #8B4513;
width: 100%;
height: 60%;
position: absolute;
top: 0;
left: 0;
#back-wall {
z-index: -1;
}
}
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

Challenge: Learn Intermediate CSS by Building a Picasso Painting - Step 10

Link to the challenge:

Look at this part - you have a CSS rule inside of a CSS rule. That can’t be right. You want only to add the property and value as you have done.

2 Likes

I looked at it so many times and I did not notice it. Thank you so much!!

1 Like

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