File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -6,22 +6,20 @@ title: Gallery
6
6
nav : true
7
7
nav_order : 8
8
8
---
9
-
10
9
<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 % ; " >
12
11
<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">
14
13
<div class="caption">KGML Team</div>
15
14
</div>
16
15
17
16
<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">
19
18
<div class="caption">Jie’s PhD Defense Celebration</div>
20
19
</div>
21
20
22
21
<button class="prev" onclick="changeSlide(-1)">❮</button>
23
22
<button class="next" onclick="changeSlide(1)">❯</button>
24
-
25
23
</div >
26
24
</div >
27
25
@@ -52,7 +50,7 @@ nav_order: 8
52
50
}
53
51
54
52
.carousel-image {
55
- width : 600 px ;
53
+ width : 100 % ; /* 100% of the container */
56
54
height : auto ;
57
55
display : block ;
58
56
margin : 0 auto ;
@@ -72,11 +70,11 @@ nav_order: 8
72
70
}
73
71
74
72
.prev {
75
- left : -50 px ;
73
+ left : 10 px ; /* Adjusted to position the arrow inside the 90% container */
76
74
}
77
75
78
76
.next {
79
- right : -50 px ;
77
+ right : 10 px ; /* Adjusted to position the arrow inside the 90% container */
80
78
}
81
79
82
80
.caption {
You can’t perform that action at this time.
0 commit comments