blob: ab64e1e9daea9300d8136f5ad7a1e33f4969a4ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<!DOCTYPE html>
<html>
<head>
<style>
.outer {
transform-style: preserve-3d;
width: 200px;
height: 200px;
opacity: 0.7;
}
.inner {
top: 50%;
transform: translateY(-50%);
background-color: green;
position:relative;
width: 200px;
height: 200px;
}
</style>
</head>
<body>
<div id="outer" class="outer">
<div class="inner">
</div>
</div>
</body>
</html>
|