Use the CSS Transform Property skewY to Skew an Element Along the Y-Axis. Can you please help me?

Use the CSS Transform Property skewY to Skew an Element Along the Y-Axis. Can you please help me?
0

#1

Tell us what’s happening:
I’ve been doing what I thought I was supposed to do, but for some reason it’s not working, I bet it told me what to do in the last lesson, but I haven’t been doing coding for a while.

Your code so far


<style>
  div { 
    width: 70%;
    height: 100px;
    margin: 50px auto;
  }
  #top {
    background-color: red;
    transform: skewY(-10);
  }
  #bottom {
    background-color: blue;
    transform: skewX(24deg);
  }
</style>

<div id="top"></div>
<div id="bottom"></div>

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 10575.55.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/use-the-css-transform-property-skewy-to-skew-an-element-along-the-y-axis/


#2

You need to give it a unit, which is “deg”.


#3

I just figured that out, thanks for the help by the way.