Learn CSS Transforms by Building a Penguin - Step 2

Tell us what’s happening:
Describe your issue in detail here.
where am i doing it wrong?

  **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 */
body {
background: linear-gradient(45deg clockwise);
  **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:

You didn’t add the rgb colors and clockwise just refers to the direction of the deg (angle).

linear-gradient() - CSS: Cascading Style Sheets | MDN


The gradient line’s angle of direction. A value of 0deg is equivalent to to top; increasing values rotate clockwise from there.


body {
  background: linear-gradient(45deg, red, blue);

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