Skip to content

Commit d59323c

Browse files
committed
fix hero image box shadow
1 parent b284e1a commit d59323c

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

assets/css/style.css

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,18 @@ body {
153153

154154
.hero-image {
155155
width: 100%;
156-
height: 300px;
156+
max-height: 300px;
157157
overflow: hidden;
158158
border-radius: var(--border-radius);
159-
box-shadow: var(--shadow);
160159
margin-bottom: 30px;
160+
line-height: 0; /* remove any inline-gap around the banner image */
161161
}
162162

163163
.hero-image img {
164164
width: 100%;
165-
height: 100%;
165+
height: auto;
166166
object-fit: cover;
167+
display: block; /* remove bottom inline gap so banner fits flush */
167168
}
168169

169170
.hero-content {
@@ -1215,10 +1216,6 @@ body {
12151216
border-left: 4px solid var(--primary-color);
12161217
}
12171218

1218-
.hero-image {
1219-
height: 200px;
1220-
}
1221-
12221219
.hero-content h1 {
12231220
font-size: 32px;
12241221
}

0 commit comments

Comments
 (0)