Skew the <div> element 20 degrees along the X-axis, and 30 degrees along the Y-axis. - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Skew the <div> element 20 degrees along the X-axis, and 30 degrees along the Y-axis.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
div {<!--   w ww . j av a 2  s  .c  o  m-->
    width: 100px;
    height: 100px;
    margin: 50px;
    background-color: pink;
    border: 1px solid black;
    transform: skew(20deg, 30deg);
}

</style>
</head>
<body>

<div></div>

</body>
</html>

Related Tutorials