Learn the CSS Box Model by Building a Rothko Painting - Step 45

Tell us what’s happening:
Describe your issue in detail here.
the lesson provided wrong answer for clockwise value
Your code so far
transform: rotate(0.2deg)

/* file: styles.css */
.canvas {
  width: 500px;
  height: 600px;
  background-color: #4d0f00;
  overflow: hidden;
  filter: blur(2px);
}

.frame {
  border: 50px solid black;
  width: 500px;
  padding: 50px;
  margin: 20px auto;
}

.one {
  width: 425px;
  height: 150px;
  background-color: #efb762;
  margin: 20px auto;
  box-shadow: 0 0 3px 3px #efb762;
  border-radius: 9px;
  transform: rotate(-0.6deg);
}

.two {
  width: 475px;
  height: 200px;
  background-color: #8f0401;
  margin: 0 auto 20px;
  box-shadow: 0 0 3px 3px #8f0401;
  border-radius: 8px 10px;
  transform: rotate(0.4deg);
}

.one, .two {
  filter: blur(1px);
}

.three {
  width: 91%;
  height: 28%;
  background-color: #b20403;
  margin: auto;
  filter: blur(2px);
  box-shadow: 0 0 5px 5px #b20403;
  border-radius: 30px 25px 60px 12px;

/* User Editable Region */

transform: rotate(0.2);

/* User Editable Region */

}
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Rothko Painting</title>
    <link href="./styles.css" rel="stylesheet">
  </head>
  <body>
    <div class="frame">
      <div class="canvas">
        <div class="one"></div>
        <div class="two"></div>
        <div class="three"></div>
      </div>
    </div>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Challenge: Learn the CSS Box Model by Building a Rothko Painting - Step 45

Link to the challenge:

Hello and welcome to the community :smiley:!
I think it should be (-0.2 deg)

please update the lesson with the correct answer

We do not provide the answer. But, if you are going counter-clockwise, the number should not be positive, but negative.

I hope this helps you.

You are doing great! Keep up with your good progress! :slight_smile:

i provided the correct answer for clockwise value but the lesson didn’t let it pass and required negative value in the hint

For this step the rotation is counter-clockwise. That is a negative number.
I think there may be misunderstanding between the degrees of rotation and the direction of rotation.

You are correct, if it had been clockwise, then it would be a positive number.

Happy coding! :slight_smile:

2 Likes

According to math Clockwise rotation is a positive number. In this step you want to rotate it COUNTER clockwise which would result in it having to be a negative number. Therefore this steps instructions is correct and does not need updating.

1 Like