Learn CSS Transforms by Building a Penguin - Step 2

I don’t know why my code did not pass
Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8" />
    <link rel="stylesheet" href="./styles.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

/* file: styles.css */

/* User Editable Region */

 body {background: linear gradient(45deg,  rgb(118, 201, 255), rgb(247, 255, 222));}

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

Challenge: Learn CSS Transforms by Building a Penguin - Step 2

Link to the challenge:

Its linear-gradient instead of linear gradient

it still did not work. " You should use the background property in the body selector." That is what is displaying.

What does your current code look like? Using your code, after I fix the linear-gradient then the challenge passes for me. You can use the </> button when you reply and paste your code between the lines it gives you

Penguin (css) body { background: linear-gradient (45deg, rgb(118, 201, 255), rgb(247, 255, 222)); }

There shouldnt be any space between your linear-gradient and the opening parentheses (

It worked. Thank you so much Cody

1 Like

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