-
Notifications
You must be signed in to change notification settings - Fork 0
/
text-shadow.html
54 lines (51 loc) · 1.39 KB
/
text-shadow.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Scripted Pixels' text shadows</title>
<style type="text/css">
/* setup the very basis for the document */
body {
text-align:center;
font-family:helvetica;
}
/* text-shadow works by setting the offset on vertical and horizontal
levels ( 1px / -1px ) for the shadow and then you set the blur level in
pixels of the shadow it self ( 1px ). You then set the HEX code for the
shadow color ( #000 ) */
body h1 {
font-size:80px;
color:#cdcdcd;
text-shadow:-1px -1px 1px #000;
float:left;
margin:15px;
}
body h2 {
font-size:80px;
color:#cdcdcd;
text-shadow:1px 1px 1px #000;
float:left;
margin:15px;
}
/* text-shadow works by setting the offset on vertical and horizontal
levels ( 10px / 10px ) for the shadow and then you set the blur level in
pixels of the shadow it self ( 10px blur ). You then set the HEX code for the
shadow color ( #f00 = red ) */
body h3 {
/* Created he red glowy shadow */
font-size:80px;
color:#cdcdcd;
text-shadow:10px 10px 10px #f00000;
float:left;
margin:15px;
}
</style>
</head>
<body>
<h1> CSS3 text <br /> shadows </h1>
<h2> CSS3 text <br /> shadows </h2>
<h3> CSS3 text <br /> shadows </h3>
</body>
</html>