Is there a way to create a slanted div similar to the red div shown on this website?
Below is the CSS I have attempted:
#parallelogram {
width: 150px;
height: 100px;
-webkit-transform: skew(20deg);
-moz-transform: skew(20deg);
-o-transform: skew(20deg);
background: red;
}
However, I am not getting the desired result. Any suggestions?