Skip to content

Commit 0b5a676

Browse files
Update index.html
1 parent 233f8d4 commit 0b5a676

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

index.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,23 +99,22 @@
9999

100100

101101

102-
/* Make the card's image box taller */
103102
.feat-img {
104103
width: 100%;
105-
height: 360px; /* was 280px – increase until it feels right */
104+
height: 280px; /* your original height */
106105
background: var(--charcoal);
107106
position: relative;
108-
overflow: hidden; /* keep this */
107+
overflow: hidden;
109108
}
110109

111-
/* Keep full-bleed behavior */
110+
/* for the cropped feature image */
112111
.feat-img-el {
113112
position: absolute;
114-
inset: 0;
113+
left: 50%;
114+
top: 60%; /* >50 pushes the visible area down */
115115
width: 100%;
116-
height: 100%;
117-
object-fit: cover; /* keep cover for full-card fill */
118-
display: block;
116+
height: auto;
117+
transform: translate(-50%, -50%);
119118
}
120119

121120

0 commit comments

Comments
 (0)