blob: e62601606a95fd248471884843b2a9fe5666b379 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
.wrapper {
outline: 1px solid black;
width: 280px;
height: 280px;
-webkit-box-sizing: border-box;
margin: 4px;
display: inline-block;
}
.box {
position: relative;
width: 280px;
height: 280px;
display: inline-block;
}
.indicator {
position: absolute;
width: 280px;
height: 280px;
-webkit-box-sizing: border-box;
border: 0 solid rgba(0, 255, 0, 0.05);
}
</style>
</head>
<body>
<!-- The extent of the shadow should approximately match the pale green boxes. -->
<div class="wrapper">
<div class="indicator box" style="border-width: 10px"></div>
<div class="box" style="box-shadow: 0 0 10px black inset"></div>
</div>
<div class="wrapper">
<div class="indicator box" style="border-width: 20px"></div>
<div class="box" style="box-shadow: 0 0 20px black inset"></div>
</div>
<br>
<div class="wrapper">
<div class="indicator box" style="border-width: 50px"></div>
<div class="box" style="box-shadow: 0 0 50px black inset"></div>
</div>
<div class="wrapper">
<div class="indicator box" style="border-width: 90px"></div>
<div class="box" style="box-shadow: 0 0 90px black inset"></div>
</div>
</body>
</html>
|