Skip to content

Commit 1266cf6

Browse files
committed
Update style
1 parent 788fec9 commit 1266cf6

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

intersection-observer/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Document</title>
6+
<title>Intersection Observer Exercise</title>
77
<link rel="stylesheet" href="styles.css" />
88
</head>
99
<body>

intersection-observer/styles.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
* {
2+
box-sizing: border-box;
3+
margin: 0;
4+
padding: 0;
5+
}
6+
17
.hero {
28
width: 100%;
39
height: 100vh; /* Always fill the full viewport height */
@@ -28,7 +34,7 @@
2834
.hero-title {
2935
grid-area: 1 / 1;
3036
color: #fff;
31-
font-size: 4rem;
37+
font-size: 6vw;
3238
font-weight: 700;
3339
text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
3440
z-index: 1;
@@ -51,12 +57,13 @@
5157

5258
#my-work {
5359
padding: 3rem 0;
60+
margin: auto 5rem;
5461
background: #fff;
5562
text-align: center;
5663
}
5764

5865
#my-work h2 {
59-
font-size: 2rem;
66+
font-size: 5vw;
6067
margin-bottom: 2rem;
6168
}
6269

0 commit comments

Comments
 (0)