File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ <html lang="en">
2
+ <head>
3
+ <meta charset="UTF-8" />
4
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Image Bg Text</title>
7
+ <link rel="stylesheet" href="style.css" />
8
+ </head>
9
+ <body>
10
+ <h1 class="heading">HuXn WebDev</h1>
11
+ </body>
12
+ </html>
Original file line number Diff line number Diff line change
1
+ @import url("https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap");
2
+
3
+ * {
4
+ margin: 0;
5
+ padding: 0;
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ body {
10
+ height: 100vh;
11
+ font-family: "Abril Fatface", cursive;
12
+ display: flex;
13
+ justify-content: center;
14
+ align-items: center;
15
+ background: #000;
16
+ }
17
+
18
+ .heading {
19
+ font-size: 10rem;
20
+ font-weight: 900;
21
+ background: url(https://images.unsplash.com/photo-1446329813274-7c9036bd9a1f?crop=entropy&cs=tinysrgb&fm=jpg&ixlib=rb-1.2.1&q=80&raw_url=true&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170);
22
+ background-size: cover;
23
+ background-clip: text;
24
+ -webkit-background-clip: text;
25
+ color: transparent;
26
+ }
You can’t perform that action at this time.
0 commit comments