Learn CSS Transforms by Building a Penguin - Step 2

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" />
    <link rel="stylesheet" href="./styles.css" />
    <title>Penguin</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>

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

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

Link to the challenge:

Please 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!

I have problems with the linear gradient property

Can you be more specific about what words or phrases in the instructions or hints are confusing?

This is targeting the body class

" You should set background to linear-gradient(45deg, rgb(118, 201, 255), rgb(247, 255, 222)) ."

I think I have set this property correctly and I do not know why it does not pass

Make sure you are targeting the right thing

I do not undestand. Could you explain it to me clearer?

Do you know the difference between a class selector and an element selector?

This was covered in the Cafe Menu project.

1 Like

Oh sorry. My mistake

1 Like

I have not done the course for a long time. I could pass. Thank you!

1 Like

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