Learn Intermediate CSS by Building a Cat Painting - Step 8

Tell us what’s happening:
Describe your issue in detail here.
I struggle with linear function
Your code so far

background: linear-gradient #5e5e5e 85% #45454f 100%; 
<!-- 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;
}

.cat-head {
  width: 205px;
  height: 180px;
  border: 1px solid #000;
  border-radius: 46%;

/* User Editable Region */

background: linear-gradient #5e5e5e 85% #45454f 100%; 

/* 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/116.0.0.0 Safari/537.36

Challenge: Learn Intermediate CSS by Building a Cat Painting - Step 8

Link to the challenge:

you need toa have those colors in brackets ()

@diomed is correct. You should also separate the two colors with a comma after your percent number.
Ex:

background: linear-gradient(red 100%, green 20%);
1 Like

I was skeptical about your answer and my intuition is right. YOUE ANSWER IS WRONG
background: linear-gradient (#5e5e5e 85% #45454f 100%);

You are also wrong. This why I moslty prefer a professional for help, NOT a student like me

background: linear-gradient (#5e5e5e 85%, #45454f 100%,);

background: linear-gradient (#5e5e5e 85%, #45454f 100%);

Wrong AGAIN :rofl:

The space before the open bracket was the issue. I got it.

Unlike you I’m actually polite. most people appreciate help even though at times the answer is not to there liking. Also I didn’t mean that your last color should have a comma, like I said its for separation between the two.

1 Like

Ah I didn’t realize, see that now. Well done :+1:.

Worry not. Thank you for your help

1 Like

It’s utmost disrispectful to tell people who are helping you that their answer is wrong - when it’s not. IN the end you needed those brackets.

We are not here to give you answer on a plader, and you cant demand answers to be provided like that, because giving away complete answers instead of guiding you, while you’re trying to solve problem yourself - goes AGAINST POLICY of FCC.

4 Likes

Relax. If your answer is wrong then, there’s nothing to be offended about. There answer was found.

my anwer was not at all wrong.
we are not here to give you solutions.

1 Like

Does not matter. You answer was wrong. I got the right answer.

It looks like both of them correctly identified problems with your code. Please be kind to people who are helping you!

This thread has run it’s course, so I’ll close it.

3 Likes