Skip to content

Commit 849ce99

Browse files
committed
CSS Aspect-Ratio & Neon Effect
1 parent 2e15197 commit 849ce99

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>CSS Aspect-Ratio & Neon Effect</title>
7+
<style>
8+
.wrapper {
9+
width: 100vw;
10+
height: 100vh;
11+
display: grid;
12+
place-items: center;
13+
background: steelblue;
14+
}
15+
.box {
16+
width: 600px;
17+
height: 0;
18+
padding-bottom: calc(600px * 9 / 16); /*Aspect Ratio:16/9*/
19+
background: black;
20+
box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #49ff18,
21+
0 0 30px #49ff18, 0 0 40px #49ff18, 0 0 55px #49ff18, 0 0 75px #49ff18;
22+
}
23+
.box h1 {
24+
color: white;
25+
text-align: center;
26+
margin-top: 150px;
27+
font-size: 3rem;
28+
letter-spacing: 5px;
29+
text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff,
30+
0 0 20px #49ff18, 0 0 30px #49ff18, 0 0 40px #49ff18, 0 0 55px #49ff18,
31+
0 0 75px #49ff18;
32+
}
33+
</style>
34+
</head>
35+
<body>
36+
<div class="wrapper">
37+
<div class="box">
38+
<h1>Pain</h1>
39+
</div>
40+
</div>
41+
</body>
42+
</html>

0 commit comments

Comments
 (0)