Learn CSS Transforms by Building a Penguin - Step 2

Tell us what’s happening:

Hi there, for some reason I get the error message “You should use the background property in the body selector” in step 2 of building the happy penguin. I can’t figure out what the problem with my code is. Thanks for your help!

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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Challenge Information:

Learn CSS Transforms by Building a Penguin - Step 2

Ignore me, I found it! Needed to close the second bracket at the end! Sorry for the inconvenience. I had spent a long time trying to figure it out, but of course I only did the moment I posted a help request. :sweat:

1 Like

@francescoguerrieri I’m glad to see that you stuck it out, and found the issue. This is a great trait for coding/programming. Keep up the great work my friend. -Bill :smiling_face:

2 Likes

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