Skip to content

Commit 9f88ae7

Browse files
committed
made the photo width as 80% of the page width
1 parent d9a8cc1 commit 9f88ae7

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

_pages/gallery.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,20 @@ title: Gallery
66
nav: true
77
nav_order: 8
88
---
9-
109
<div class="carousel" style="text-align: center;">
11-
<div style="position: relative; display: inline-block;">
10+
<div style="position: relative; display: inline-block; width: 80%;">
1211
<div class="carousel-slide">
13-
<img class="carousel-image" src="/assets/img/lab_photo.jpg" alt="Lab Photo" style="width:600px;">
12+
<img class="carousel-image" src="/assets/img/lab_photo.jpg" alt="Lab Photo">
1413
<div class="caption">KGML Team</div>
1514
</div>
1615

1716
<div class="carousel-slide" style="display:none;">
18-
<img class="carousel-image" src="/assets/img/jie_grad_celebration.jpg" alt="Graduation Celebration" style="width:600px;">
17+
<img class="carousel-image" src="/assets/img/jie_grad_celebration.jpg" alt="Graduation Celebration">
1918
<div class="caption">Jie’s PhD Defense Celebration</div>
2019
</div>
2120

2221
<button class="prev" onclick="changeSlide(-1)">&#10094;</button>
2322
<button class="next" onclick="changeSlide(1)">&#10095;</button>
24-
2523
</div>
2624
</div>
2725

@@ -52,7 +50,7 @@ nav_order: 8
5250
}
5351

5452
.carousel-image {
55-
width: 600px;
53+
width: 100%; /* 100% of the container */
5654
height: auto;
5755
display: block;
5856
margin: 0 auto;
@@ -72,11 +70,11 @@ nav_order: 8
7270
}
7371

7472
.prev {
75-
left: -50px;
73+
left: 10px; /* Adjusted to position the arrow inside the 90% container */
7674
}
7775

7876
.next {
79-
right: -50px;
77+
right: 10px; /* Adjusted to position the arrow inside the 90% container */
8078
}
8179

8280
.caption {

0 commit comments

Comments
 (0)