Learn Intermediate CSS by Building a Cat Painting - Step 8

Tell us what’s happening:

Step 8
To see the .cat-head element, give it a linear gradient background with #5e5e5e at 85% and #45454f at 100%.

You might not notice the difference between these two colors, but they are there.
code:
background : linear-gradient(#5e5e5e 85% , #45454f 100%)
am getting error pls assist anyone…thanks

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>fCC Cat Painting</title>
    <link rel="stylesheet" href="./styles.css">
</head>
<body>
    <main>
      <div class="cat-head"></div>
    </main>
</body>
</html>
/* file: styles.css */
* {
  box-sizing: border-box;
}

body {
  background-color: #c9d2fc;
}


/* User Editable Region */

.cat-head{
  width: 205px;
  height: 180px;
  border: 1px solid #000;
  border-radius: 46%;
  background : linear-gradient(#5e5e5e 85%, #45454f 100%)
}

/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Learn Intermediate CSS by Building a Cat Painting - Step 8

Hello there!
Welcome to our forum.
Your code is ok, you have a spacing issue. Immediately after the background property, you should not have a space.

1 Like