-
Notifications
You must be signed in to change notification settings - Fork 843
/
Copy pathtext-shadow.html
57 lines (48 loc) · 1.21 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
55
56
57
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CSS Solutions: How to add a shadow to text</title>
<link rel="stylesheet" href="styles.css">
<style>
.wrapper {
height: 150px;
display: flex;
align-items: center;
justify-content: center;
}
h1 {
font-size: 2em;
}
</style>
<style class="editable">
h1 {
color: royalblue;
text-shadow: 2px 4px 4px rgba(46,91,173,0.6);
}
</style>
</head>
<body>
<section class="preview">
<div class="wrapper">
<h1>Adding a shadow to text</h1>
</div>
</section>
<textarea class="playable playable-css" style="height: 100px;">
h1 {
color: royalblue;
text-shadow: 2px 4px 4px rgba(46,91,173,0.6);
}
</textarea>
<textarea class="playable playable-html" style="height: 100px;">
<div class="wrapper">
<h1>Adding a shadow to text</h1>
</div>
</textarea>
<!-- leave everything below here alone -->
<div class="playable-buttons">
<input id="reset" type="button" value="Reset">
</div>
</body>
<script src="playable.js"></script>
</html>