Rotate the <div> element 120deg around its Y-axis. - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Rotate the <div> element 120deg around its Y-axis.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
div {<!--from  w  w w.j  av a 2 s . c om-->
    width: 100px;
    height: 100px;
    background-color: pink;
    border: 1px solid black;
    transform: rotateY(120deg);
}

</style>
</head>
<body>

<div>This is a div element</div>

</body>
</html>

Related Tutorials