gera
August 18, 2023, 5:57am
1
Tell us what’s happening:
Describe your issue in detail here.
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;
}
.cat-head {
width: 205px;
height: 180px;
border: 1px solid #000;
/* User Editable Region */
border-radius: 46%;
background: linear-gradient;
linear-gradient-co:#5e5e5e 85%;
color:#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/115.0.0.0 Safari/537.36 Edg/115.0.1901.203
Challenge: Learn Intermediate CSS by Building a Cat Painting - Step 8
Link to the challenge:
Viv01
August 18, 2023, 6:25am
2
This is wrong format of linear background. Modify your code,
example;
background: linear-gradient(
to direction,
color stop 1,
color stop 2,
...
);
Hello @gera !
The following link shows how to use the linear gradient.
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
For example:
body {
background: linear-gradient( 90deg, rgb(0 ,0, 0) 25%, #f2f2f2 6%);
}
Leave a space afte each entry, or comma. No comma after the last entry.
I hope this helps you!
Happy coding!
1 Like
gera
August 18, 2023, 3:44pm
4
Thanks! I’ll use the link
1 Like
I hope the link was able to help you @gera .
If you still need help, just post in the community, again!
Happy coding!
@gera , just so you are aware, there is currently a bug in this step and you won’t pass unless you put all of the CSS for the property on one line and include a space after the comma.
system
Closed
February 17, 2024, 8:56am
7
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.