Learn Intermediate CSS by Building a Cat Painting - Step 8

Tell us what’s happening:

While the course i was asked to use linear-gradient with some values. Accordingly, i put some values as the format, i learned, but fails to show result

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%);
}

/* User Editable Region */

Your browser information:

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

Challenge Information:

Learn Intermediate CSS by Building a Cat Painting - Step 8

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

1 Like

You give it a nice try. :ok_hand:

See in the instructions there is another value too you need to put that one also.

And linear-gradient effect shown when we put two values into it.

Hope this help you. :partying_face:

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