Learn CSS Transforms by Building a Penguin - Step 12

Tell us what’s happening:
Describe your issue in detail here.

I am having a troubling time understanding why this isn’t working can some one help me please?

I am receiving this message: You should give .penguin a margin of auto , but found `` .

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" />

    <div class="penguin"></div>
    <div class="ground"></div>
/* file: styles.css */
body {
  background: linear-gradient(45deg, rgb(118, 201, 255), rgb(247, 255, 222));
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;

.penguin {
  width: 300px;
  height: 300px;
  margin: 75px, auto;

.ground {
  width: 100vw;
  height: 400px;
  background: linear-gradient(90deg, rgb(88, 175, 236), rgb(182, 255, 255));
  z-index: 3;
  position: absolute;

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 12

Link to the challenge:

Get rid of the comma after the 75px in your penguin class. If you need more help understanding margin you can read this

1 Like

Thank you, dunno why I thought that I need commas after them.

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