Skip to content

Commit 819b665

Browse files
committed
text-shadow demo
1 parent 96b9b62 commit 819b665

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

howto/text-shadow.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<title>CSS Solutions: How to add a shadow to text</title>
7+
<link rel="stylesheet" href="styles.css">
8+
<style>
9+
.wrapper {
10+
height: 150px;
11+
display: flex;
12+
align-items: center;
13+
justify-content: center;
14+
}
15+
16+
h1 {
17+
font-size: 2em;
18+
}
19+
</style>
20+
21+
<style class="editable">
22+
h1 {
23+
color: royalblue;
24+
text-shadow: 0px 4px 2px rgba(46,91,173,0.6);
25+
}
26+
27+
</style>
28+
</head>
29+
30+
<body>
31+
<section class="preview">
32+
<div class="wrapper">
33+
<h1>Adding a shadow to text</h1>
34+
</div>
35+
</section>
36+
37+
<textarea class="playable playable-css" style="height: 100px;">
38+
h1 {
39+
color: royalblue;
40+
text-shadow: 0px 4px 2px rgba(46,91,173,0.6);
41+
}
42+
</textarea>
43+
44+
<textarea class="playable playable-html" style="height: 100px;">
45+
<div class="wrapper">
46+
<h1>Adding a shadow to text</h1>
47+
</div>
48+
</textarea>
49+
50+
<!-- leave everything below here alone -->
51+
<div class="playable-buttons">
52+
<input id="reset" type="button" value="Reset">
53+
</div>
54+
</body>
55+
<script src="playable.js"></script>
56+
57+
</html>

0 commit comments

Comments
 (0)