Use the CSS Transform Property skewX to Skew an Element Along the X-Axis NOT WORKING

Tell us what’s happening:

is not workING WHAT IS GOING ON

Your code so far


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


</style>

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0.

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

you dont need spaces try

transform: skew(45deg);

appreciated but it is still not working

do i add this (#) to the bottom id

Yes. There’s a little space at the first #bottom where you could include skewX too.

The x in skewX has to be capital.

This topic is two years old. Please, only respond to current topics