Learn CSS Transforms by Building a Penguin - Step 2

Tell us what’s happening:
I’ve cleared my browsing data, my cach, and cookies. I’ve retyped and reloaded this step, I’ve also tryed incognito, and i still keep getting this message, Test
Sorry, your code does not pass. Don’t give up.

Hint
You should use the background property in the body selector.

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

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

Link to the challenge:

Don’t use a colon after “linear-gradient”, and don’t use parentheses for direction (use only 45deg, …).

I took the : and the ( ) out and I’m still getting the same message.

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

In your latest code you’re not even using a linear-gradient. You just have values, you need to include the words linear-gradient

You can look at this and see example of how a linear gradient is used, and you can follow the same syntax but replace their values with the values that the challenges asks for

Just reset it all and I still get the same message.

Test

Sorry, your code does not pass. Keep trying.

Hint

You should use the background property in the body selector.

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

A few changes you need to make

  1. Get rid of the ) at the end of deg
  2. Add a comma after deg
  3. add another ) at the very end before the ;

still the same

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

Look again. you have a random comma at the very end for some reason. That comma between the parentheses is not supposed to be there…

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

same

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

Because you also have extra space where they are not needed . Get rid of the space between linear and the first (

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