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

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

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

<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:

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

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

1 Like