Skip to content

Commit c81bc2a

Browse files
committed
Added Image Bg Text Update
1 parent 0cd174f commit c81bc2a

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

12. Image Bg Text/index.html

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
<!DOCTYPE html>
12
<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">WebDev Journey</h1>
11-
</body>
12-
</html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<link rel="stylesheet" href="style.css" />
7+
<title>Image Bg Text</title>
8+
</head>
9+
<body>
10+
11+
<h1 class="heading">WebDev Journey</h1>
12+
13+
</body>
14+
</html>

12. Image Bg Text/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ body {
1212
display: flex;
1313
justify-content: center;
1414
align-items: center;
15-
background: #000;
15+
background: #ffffff;
1616
}
1717

1818
.heading {
1919
font-size: 10rem;
2020
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);
21+
background: url(https://images.unsplash.com/photo-1516259762381-22954d7d3ad2?q=80&w=1489&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
2222
background-size: cover;
2323
background-clip: text;
2424
-webkit-background-clip: text;

0 commit comments

Comments
 (0)