Skip to content

Commit 14490f2

Browse files
committed
fix people
1 parent 90853eb commit 14490f2

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

people.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@
3232
</div>
3333

3434
<div class="image-item">
35-
<img src="images/logo_face.png" alt="Image 2" />
35+
<img src="images/caitlin.jpg" alt="Image 2" />
3636
<p class="caption">
37-
This is centered text under the second image. Same behavior here.
37+
<b>Caitlin Lewis</b> <br />
38+
PhD Student <br />
39+
Duke Pearson Lab
3840
</p>
3941
</div>
4042
</div>

style.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,10 @@ main .quad-text {
153153
}
154154

155155
.image-item img {
156-
width: 180px; /* ← change this number */
157-
height: auto;
156+
height: 20vh; /* relative to viewport */
157+
max-height: 180px;
158+
width: auto;
159+
object-fit: contain;
158160
}
159161

160162
.image-item .caption {

0 commit comments

Comments
 (0)