-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy path72_boxshadow.html
43 lines (38 loc) · 1.21 KB
/
72_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
<!DOCTYPE HTML>
<html>
<head>
<style>
head, style {display: block;}
[contenteditable] {-webkit-user-modify: read-write-plaintext-only;}
style:first-of-type {visibility:hidden;}
style:last-of-type {padding: 20px; font-size: 1.5em; white-space: pre; font-family: monospace; white-space:pre; border-radius: 10px; border: 3px solid #aaa; background-color:#dedede; margin: 20px auto; width: 80%; font-family:"Courier New", Courier, monospace; position:relative; top: -60px;}
ol {font-family:Verdana, Geneva, sans-serif; font-size:1.2em}
li {color: black;}
:root {background-color:#ccc;
background-image:url(../css/page-bg.jpg);}
p {font-family:Verdana, Geneva, sans-serif; font-size:1.2em;
margin: 60px 60px 140px 60px; padding:20px; text-align:center;}
</style>
<style contenteditable>.rainbow {
box-shadow:
0 0 0 10px red,
0 0 0 20px orange,
0 0 0 30px yellow,
0 0 0 40px green,
0 0 0 50px blue,
0 0 0 60px purple;
}
.borders {
box-shadow:
0 0 0 20px purple,
0px 0px 10px 25px rgba(255,255,255,0.5),
0 0 0 60px purple;
}
</style>
<title>box-shadow as borders</title>
</head>
<body>
<p class="rainbow">This has no borders</p>
<p class="borders">This has no borders</p>
</body>
</html>