-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
51 lines (42 loc) · 1.08 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* Custom CSS for the carousel */
.carousel {
max-width: 600px;
margin: 0 auto;
position: relative;
}
.carousel-inner {
height: 400px; /* Fixed height */
display: flex;
align-items: center; /* Vertically center the image */
/* justify-content: center; /* Horizontally center the image */
/*background-color: #f0f0f0; /* Fallback background color */
}
.carousel-inner img {
max-width: 600px;
max-height: 400px;
width: auto;
height: auto;
object-fit: contain; /* Ensures the image scales properly */
}
.carousel-control-prev,
.carousel-control-next {
width: 50px;
height: 50px;
background-color: rgba(0, 0, 0, 0.5);
border-radius: 50%;
top: 50%;
transform: translateY(-50%);
position: absolute;
}
.carousel-control-prev {
left: -70px; /* 50px outside the image */
}
.carousel-control-next {
right: -70px; /* 50px outside the image */
}
.carousel-caption {
width:auto;
text-align: center;
background-color: rgba(0, 0, 0, 0.5);
justify-content: center;
}