Skip to content

Commit 20857f3

Browse files
committed
Second Header Fix
1 parent 4c281c5 commit 20857f3

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
</div>
2727
</div>
2828

29-
<header class="header header--home"></header>
29+
<header class="header header--home">
30+
<img src="background.png" />
31+
</header>
3032
</body>
3133
</html>

styles.css

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,29 @@ h1 {
2323
}
2424

2525
.header {
26-
background-image: url("background.png");
2726
font-family: Arial, Helvetica, sans-serif;
2827
background-size: cover;
2928
background-repeat: no-repeat;
3029
background-origin: border-box;
31-
height: 500px;
30+
height: 100%;
3231
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
33-
margin-bottom: 20px;
32+
/* margin-bottom: 20px; */
3433
display: grid;
3534
place-items: center;
36-
padding: 50px;
35+
/* padding: 50px; */
3736
border-bottom-left-radius: 25px;
3837
border-bottom-right-radius: 25px;
39-
padding-top: 25px;
38+
/* padding-top: 25px; */
4039
}
4140

42-
@media (min-width: 600px) {
43-
.header--home {
44-
height: 725px;
45-
}
41+
.header--home {
42+
overflow: hidden;
43+
}
44+
45+
.header--home img {
46+
margin-left: 0%;
47+
transform: translateX(0%);
48+
width: 100%;
4649
}
4750

4851
@keyframes fade-and-come-down {

0 commit comments

Comments
 (0)