Learn CSS Transforms by Building a Penguin - Step 2

Tell us what’s happening:
Describe your issue in detail here.
I Don’t understand the error here.
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(45 deg,rgb(118,201,255), rgb(247,255,222));}

/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (iPad; CPU OS 16_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/109.0.5414.83 Mobile/15E148 Safari/604.1

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

Link to the challenge:

Maybe it will be easier to read if you lay it out this way.

It might be the space between the background and linear.

1 Like

There should not be a space between 45 and deg.

1 Like

Actually it worked after removing the semi-colon. But thank you

That doesn’t make any sense. You had a space between 45 and deg in your CSS code you pasted above. That is invalid CSS. The tests won’t pass unless you remove that space.

The semicolon doesn’t matter in this case because there is only one property in the ruleset. So the tests will pass with or without it. But they will not pass as long as there is a space between 45 and deg.

Thanks a lot… !!

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