-
Notifications
You must be signed in to change notification settings - Fork 0
/
boxshadow.html
67 lines (62 loc) · 1.76 KB
/
boxshadow.html
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
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
.div1 {
margin-top:30px;
width: 250px;
height: 100px;
padding: 20px;
background-color: coral;
box-shadow: 10px -10px lightgreen;
}
.div2{
width: 250px;
height: 100px;
padding: 20px;
background-color: coral;
box-shadow: 10px 10px 5px lightgreen;
}
.div3{
width: 250px;
height: 100px;
padding: 20px;
background-color: coral;
box-shadow: 10px 10px 5px 8px lightgreen;
}
.div4{
width: 250px;
height: 100px;
padding: 20px;
background-color: coral;
box-shadow: 10px 10px 10px -5px lightgreen;
}
.div5 {
width: 250px;
height: 100px;
padding: 15px;
background-color: coral;
box-shadow: -10px -10px 7px lightblue inset;
}
.div6 {
width: 250px;
height: 100px;
padding: 15px;
background-color: coral;
box-shadow: 4px 4px 2px lightblue, -4px -4px 2px red, 8px 8px 2px coral, -8px -8px 2px purple;
}
</style>
<body>
<div class="div1">This is box shadow example</div><br></br>
<div class="div2">This is box shadow example with blur effect</div><br></br>
<div class="div3">A element with a blurred, lightgreen box-shadow, with a spread radius of 8px, positive value increase the size of shadow</div><br></br>
<div class="div4">A element with a blurred, lightgreen box-shadow, with a spread radius of -5px, negative value decrease the size of shadow</div><br></br>
<div class="div5">The inset parameter changes the shadow from an outer shadow (outset) to an inner shadow.</div><br></br>
<div class="div6">This is multiple box shadow example of all sides</div><br></br>
</body>
</html>