x
1
2
<html>
3
<head>
4
<style>
5
#div1 {
6
position: relative;
7
height: 200px;
8
width: 200px;
9
margin: 50px;
10
padding: 10px;
11
border: 1px solid black;
12
}
13
14
#div2 {
15
padding: 50px;
16
position: absolute;
17
border: 1px solid black;
18
background-color: red;
19
transform: rotateY(70deg);
20
transform-origin: 50% 50% 100px;
21
transform: rotateY(70deg);
22
/* Safari and Chrome */
23
transform-origin: 50% 50% 100px;
24
/* Safari and Chrome */